MySql遠端連線無法開啟解決辦法

2021-12-30 10:48:52 字數 629 閱讀 8971

mysql遠端連線無法開啟解決辦法

1。改表法。

請使用mysql管理工具,如:sqlyog enterprise

可能是你的帳號不允許從遠端登陸,只能在localhost。這個時候只要在localhost的那台電腦使用mysql管理工具登入mysql後,更改 "mysql" 資料庫裡的 "user" 表裡的 "host" 項,從"localhost"改稱"%"

2. 授權法。

a:你想mysql賬戶myuser使用密碼mypassword從任何主機連線到mysql伺服器的話,那就在mysql命令列下輸入:

grant all privileges on *.* to 'myuser'@'%' identified by 'mypassword' with grant option;

若上面那條命令還沒有奏效,那就使用下面的命令,一定成功!

如果你想允許想mysql賬戶myuser從ip為192.168.1.3的主機連線到mysql伺服器,並使用mypassword作為密碼,那就在mysql命令列下輸入:

grant all privileges on *.* to 'myuser'@'192.168.1.3' identified by 'mypassword' with grant option;

mysql開啟遠端 mysql 開啟遠端連線

1045,access denied for user root 192.168.100.1 using password yes 開啟資料庫遠端連線即可 1 先在本機使用root使用者登入mysql,然後進行授權。mysql grant all privileges on to root iden...

Mysql遠端無法連線

mysql遠端無法連線 一 修改 etc mysql my.conf 找到bind address 127.0.0.1這一行 直接 掉或者改為bind address 0.0.0.0即可 二 為需要遠端登入的使用者賦予許可權 1 新建使用者遠端連線mysql資料庫 grant all on to a...

開啟mysql遠端連線

首先新增使用者 當然也可是使用root使用者 格式 grant 許可權 on 資料庫名.表名 使用者 登入主機 identified by 使用者密碼 grant select,update,insert,delete on to zhxia identified by 123456 或者所有許可權...