Search code examples
mysqlnode.jsexpressyeoman

Specifying password in MySQL connection string


I created ExpressJS MVC app using MySQL as DB with Yeoman generator and in config.js I want to change MySQL connection strings, but I don't know to specify password in string.

my string is mysql://root@localhost:3306/

Please help me.


Solution

  • Password and DB name also a part of connection string.
    Ex: mysql://root:password@localhost:port/dbName