We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There could be an addition to this
var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', user : 'me', password : 'secret', database : 'my_db' }); connection.connect(); connection.query('SELECT 1 + 1 AS solution', function (error, results, fields) { if (error) throw error; console.log('The solution is: ', results[0].solution); }); connection.end(); WHAT HAPPENS WHEN MY DEFAULT PORT IS IN USE 3306 It should be stated that port can be declared var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', user : 'me', password : 'secret', database : 'my_db' port: "8800" });
The text was updated successfully, but these errors were encountered:
Hey!
The port property is already documented in the connection options.
port
Regards, Marco
Sorry, something went wrong.
No branches or pull requests
There could be an addition to this
The text was updated successfully, but these errors were encountered: