国产欧美日韩第一页|日本一二三不卡视频|在线精品小视频,亚洲第一免费播放区,metcn人体亚洲一区,亚洲精品午夜视频

幫助中心 >  技術(shù)知識庫 >  數據庫 >  數據庫管理 >  通過(guò)ip連接MySQL時(shí)出現1449、1045異常

通過(guò)ip連接MySQL時(shí)出現1449、1045異常

2017-10-20 13:43:02 6774

通過(guò)ip連接MySQL時(shí)出現1449、1045異常

mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解決方法

把sql導到本地,執行存儲過(guò)程 或者 查看視頻報錯:

mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解決方法

權限問(wèn)題,授權 給 root  所有sql 權限

 

 

mysql> grant all privileges on *.* to root@"%" identified by ".";

 

SQLException: The user specified as a definer ('ebook'@'%') does not exist:解決辦法

grant all privileges on *.* to ebook@"%" identified by ".";

Query OK, 0 rows affected (0.00 sec)



mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

#Mysql

 

連接時(shí)出現1045異常:

 

如果是mysql 5.6以前的,輸入UPDATE mysql.user SET Password=PASSWORD('123456') WHERE User='root';

如果是mysql 5.6以后的,輸入UPDATE mysql.user SET authentication_string=PASSWORD('root') WHERE USER='root';

這是由于5.6以后user表中沒(méi)有password字段。

輸入FLUSH PRIVILEGES; 刷新數據庫。


提交成功!非常感謝您的反饋,我們會(huì )繼續努力做到更好!

這條文檔是否有幫助解決問(wèn)題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問(wèn)題:
-->