CodePudding user response:
If it is not the same machine the same command database login password impossible sometimes can sometimes cannot loginSee the select the database user, host, password from mysql. The user;
CodePudding user response:
Set the root password will be required to enter your passwordMysql -u root -p set password library name
This is ok, if you want to save trouble, can be set up under the home directory. My. CNF file
[client]
User=root
Password=set password
So you can directly use the mysql login