日本三级片在线观看视频_西西大胆午夜人体视频无码_少妇无码一区二区_亚洲天堂超碰_极品少妇被猛的白浆直流_91精品云霸高清中文字幕_草草五月天伊人_久久少妇无码专区_欧美激欧美啪啪5老太_日韩在线在线成人

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

通過ip連接MySQL時出現(xiàn)1449、1045異常

2017-10-20 13:43:02 14533

通過ip連接MySQL時出現(xiàn)1449、1045異常

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

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

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

權(quán)限問題,授權(quán) 給 root  所有sql 權(quán)限

 

 

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

 

連接時出現(xiàn)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表中沒有password字段。

輸入FLUSH PRIVILEGES; 刷新數(shù)據(jù)庫。


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

這條文檔是否有幫助解決問題?

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

在文檔使用中是否遇到以下問題: