mysql 添加用戶 多主機 授權 連接


創建用戶

create user zhangsan identified by 'zhangsan';

授權

grant all privileges on *.* to zhangsan@'%' identified by 'zhangsan';

flush privileges;

 

mysql 授權成功后 ,總 連接不上,一下

 netstat -apn|grep 3306

tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN 

修改配置文件  ,注釋掉 這行,重啟

bind-address = 127.0.0.1

 

來源:https://www.cnblogs.com/pejsidney/p/8945934.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM