PAIP MYSQL設定遠端賬戶登陸總結

2021-09-10 04:57:31 字數 1357 閱讀 8529

mysql設定遠端賬戶登陸總結

1. error 2003 (hy00 1

2. error 1045 (28000): access denied for user 'test'@'x.x.x.x' (using password: no) 1

3. 取回root密碼並設定遠端登入 2

4. rror 1062 (23000): duplicate entry '%-root' for key 'primary' 2

5. error 1044 (42000): access denied for user ''@'localhost' to database 'mysql'。 3

6. 設定使用者遠端主機連線許可權 4

7. 設定使用者與庫的許可權 4

----作者attilax , [email protected]  

為了給mysql使用者設定乙個遠端連線許可權,經歷了很多曲折..特此紀錄下來..先是玉到了2003錯誤

原因是mysql考慮到安全因素,預設配置只讓從本地登入

開啟 /etc/mysql/my.cnf 檔案,找到 bind-address = 127.0.0.1 修改為 bind-address = 0.0.0.0

重啟mysql : sudo /etc/init.d/mysql restart

再次連線,發生錯誤 1045

mysql設定遠端賬戶登陸總結

1. error 2003 (hy00 1

2. error 1045 (28000): access denied for user 'test'@'x.x.x.x' (using password: no) 1

3. 取回root密碼並設定遠端登入 2

4. rror 1062 (23000): duplicate entry '%-root' for key 'primary' 2

5. error 1044 (42000): access denied for user ''@'localhost' to database 'mysql'。 3

6. 設定使用者遠端主機連線許可權 4

7. 設定使用者與庫的許可權 4

----作者attilax , [email protected]  

為了給mysql使用者設定乙個遠端連線許可權,經歷了很多曲折..特此紀錄下來..先是玉到了2003錯誤

原因是mysql考慮到安全因素,預設配置只讓從本地登入

開啟 /etc/mysql/my.cnf 檔案,找到 bind-address = 127.0.0.1 修改為 bind-address = 0.0.0.0

重啟mysql : sudo /etc/init.d/mysql restart

再次連線,發生錯誤 1045

設定mysql root賬戶遠端訪問許可權

進入mysql mysql uroot p切換mysql資料庫 use mysql 檢視root資訊 select host user from user where user root 更新使用者表 其中 的意思是允許所有的ip遠端訪問,如果需要指定具體的某個ip就寫上具體的ip即可 update...

MYSQL設定遠端賬戶登陸總結

mysql設定遠端賬戶登陸總結 1.error 2003 hy00 1 2.error 1045 28000 access denied for user test x.x.x.x using password no 1 3.取回root 密碼並設定遠端登入 2 4.rror 1062 23000 ...

OUTLOOK 賬戶設定

如何用outlook express收發 企業郵箱 郵件 使用outlook express 4.0及其以上版本收發郵件,設定方法如下 1.首先,啟動outlook express。從主選單中選擇 工具 項,單擊 帳戶 開啟 internet 帳戶 視窗 2.開啟 internet 帳號 視窗後,單...