mysql授權IP登錄


ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

https://blog.csdn.net/hello_world_qwp/article/details/79551789

授權所有,youpassword為登錄密碼
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

指定IP
GRANT ALL PRIVILEGES ON *.* TO 'root'@'171.111.8.130' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

如果失敗刪除后重新授權
delete from user where host = '171.111.8.130' and user = 'root';

保存配置

flush privileges;


免責聲明!

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



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