patternsqlMinor
MySQL connection string using password
Viewed 0 times
passwordmysqlusingstringconnection
Problem
I am creating app with ExpressJS and want to use MySQL with password, but I have problem with connection string
in this string where to specify password to connect to db
Please help me
mysql://user@localhost:3306/dbin this string where to specify password to connect to db
Please help me
Solution
You looking for Uniform Resource Identifier (URI) scheme, and the syntax is:
See the MySQL documentation
mysql://username:password@host:port/database/tablenameSee the MySQL documentation
Code Snippets
mysql://username:password@host:port/database/tablenameContext
StackExchange Database Administrators Q#147672, answer score: 7
Revisions (0)
No revisions yet.