mysql-user-db-creator-bash-script icon indicating copy to clipboard operation
mysql-user-db-creator-bash-script copied to clipboard

throws a promt. How to by pass or disable?

Open parmonov98 opened this issue 3 years ago • 1 comments

image

parmonov98 avatar Mar 20 '21 14:03 parmonov98

@parmonov98 Note that the password that you pass in the parameter is the password for the new user.

And MySQL credentials for new DB/user creation will be taken from the MySQL config file ~/.my.cnf. If you don't have one, you can simply create a .my.cnf file in the home directory, with

[client]
host=localhost
user=[your-db-user]
password=[your-db-pass]

If ~/.my.cnf doesn't exist, you will be prompted for the root password. For an automated environment, it's recommended to make use of the MySQL config file.

MagePsycho avatar Mar 23 '21 17:03 MagePsycho