Nacicat Premium connects remotely to the server MySQL to solve the problem of Access denied for user 'root' @ 'in remote access to mysql

The error that appears is:

Access denied for user 'root'@'

The error explains that the server is not authorized to give you this IP and cannot connect

Operation interface: 

 

 

Allow the root user name to access the mysql server on any host using the root password:

Run the command: (Copy directly in the Linux interface and right-click to copy)

1 mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
2 
3 mysql>flush privileges;

 

If you want to allow user root to connect to the mysql server from the host with ip 192.168.1.3, and use root as the password to
run the command:

mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.3' IDENTIFIED BY 'root' WITH GRANT OPTION;


The above command creates a super account that can log in as root from any machine, and the password is root. In this way, you can use a convenient graphical tool (navicat for mysql) to log in and operate, including changing the root password.  

The user name and password, IP can be replaced by your own

 

Reprinted from https://blog.csdn.net/Solar24/article/details/80284907

Guess you like

Origin www.cnblogs.com/cxy0210/p/12722643.html