mysql错误:access denied for user 'root'@'%' to reb

 

After a new database and a new user are created on mysql connected remotely using Naicat Premium, the prompt: access denied for user 'root'@'%' to database xxxx appears when adding this new database permission to the user.

 

The reason for the error is that the root user is on the MYSQL connected remotely and does not have the authorization for this new database. Using mysql locally should not have this problem.

 

As a workaround, perform authorization:

 

grant all PRIVILEGES on xxxx.* to root@'%'  identified by 'password' with grant option;

 

xxxx is the created database, and password is the root password. Please make changes according to actual requirements.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326576839&siteId=291194637