通過ip連線MySQL時出現1449 1045異常

2021-07-30 20:43:11 字數 867 閱讀 3958

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

許可權問題,授權 給 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

連線時出現

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; 重新整理資料庫。

連線mysql出現亂碼 MySQL連線時的亂碼問題

昨天用python連線mysql時遇到了乙個錯誤 latin 1 codec can t encode characters in position 36 37 ordinal not in ra.調式乙個多鐘頭才發現原來是編碼的問題,於是檢視mysql的編碼如下 問題就出在這,以上三個設定編碼是g...

mysql遠端連線時出現的ERROR

error 2003 hy000 can t connect to mysql server on 192.168 0.19 解決辦法 這個原因就是mysql資料庫的預設配置檔案my.cnf linux下 中的bind address預設為127.0.0.1,所以就算你建立了可以 remote訪問的...

MySQL連線SQLyog時出現的2058錯誤

這是我在網上看到的解決辦法 配置新連線報錯 錯誤號碼 2058,分析是 mysql 密碼加密方法變了。解決方法 windows 下cmd 登入 mysql u root p 登入你的 mysql 資料庫,然後 執行這條sql alter user root localhost identified ...