当前位置:网站首页>MySQL can connect locally through localhost or 127, but cannot connect through intranet IP (for example, Navicat connection reports an error of 1045 access denied for use...)

MySQL can connect locally through localhost or 127, but cannot connect through intranet IP (for example, Navicat connection reports an error of 1045 access denied for use...)

2022-07-07 09:44:00 qq_ thirty-six million nine hundred and sixty-seven thousand an

Problems encountered in Intranet deployment system ,127 You can use to access local , Intranet others IP cannot access Such as navicat Connection error 1045 access denied for use…

resolvent :

(1) Configure environment environment variables and log in from any interface mysql (2) Not configured by bin Go in the catalog

mysql -uroot -p
Enter password MYSQL

Input grant all privileges on . to [email protected]“IP” identified by ‘password’ with grant option;
flush privileges;

IP: namely GRANT Authorized IP, Sure %( That is all IP)
password: The code

Refresh the database
After that, you can access the database

原网站

版权声明
本文为[qq_ thirty-six million nine hundred and sixty-seven thousand an]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130624385837.html