Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在本地主机之外时,PHPMyAdmin无法再连接到MySQL_Mysql_Phpmyadmin_Easyphp - Fatal编程技术网

在本地主机之外时,PHPMyAdmin无法再连接到MySQL

在本地主机之外时,PHPMyAdmin无法再连接到MySQL,mysql,phpmyadmin,easyphp,Mysql,Phpmyadmin,Easyphp,我有一个MySQL服务器,我用phpMyAdmin管理它。当它们都在localhost中时,即当MySQL conf文件读取: bind-address = 127.0.0.1 $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['AllowN

我有一个MySQL服务器,我用phpMyAdmin管理它。当它们都在localhost中时,即当MySQL conf文件读取:

bind-address = 127.0.0.1
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
phpMyAdmin conf文件的内容如下:

bind-address = 127.0.0.1
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
。。。那么它就可以正常工作了。但是,我的目标是能够从本地网络访问数据库,因此我将MySQL设置更改为:

bind-address = 192.168.56.1
(我的本地地址),并在phpMyAdmin conf文件中添加了一个新的服务器列表:

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = '192.168.56.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
但当我尝试连接到该服务器时,会出现以下错误:

#1045 - Access denied for user 'root'@'Tim-N550J' (using password: NO) 

我遗漏了什么?

您需要在192.168.56.1中从“根”@“Tim-N550J”启用外部连接!像这样

CREATE USER 'root'@'Tim-N550J' IDENTIFIED BY 'some_pass';
之后

GRANT ALL PRIVILEGES ON *.* TO 'root'@'Tim-N550J' WITH GRANT OPTION;

您需要在192.168.56.1中从'root'@'Tim-N550J'启用外部连接!像这样

CREATE USER 'root'@'Tim-N550J' IDENTIFIED BY 'some_pass';
之后

GRANT ALL PRIVILEGES ON *.* TO 'root'@'Tim-N550J' WITH GRANT OPTION;

您需要在192.168.56.1中从'root'@'Tim-N550J'启用外部连接!像这样

CREATE USER 'root'@'Tim-N550J' IDENTIFIED BY 'some_pass';
之后

GRANT ALL PRIVILEGES ON *.* TO 'root'@'Tim-N550J' WITH GRANT OPTION;

您需要在192.168.56.1中从'root'@'Tim-N550J'启用外部连接!像这样

CREATE USER 'root'@'Tim-N550J' IDENTIFIED BY 'some_pass';
之后

GRANT ALL PRIVILEGES ON *.* TO 'root'@'Tim-N550J' WITH GRANT OPTION;

啊,是的。原来我已经有了一个root用户,但我没有看到它的主机被限制在127.0.0.1。修好了。谢谢做完了,我在等计时器:)啊,是的。原来我已经有了一个root用户,但我没有看到它的主机被限制在127.0.0.1。修好了。谢谢做完了,我在等计时器:)啊,是的。原来我已经有了一个root用户,但我没有看到它的主机被限制在127.0.0.1。修好了。谢谢做完了,我在等计时器:)啊,是的。原来我已经有了一个root用户,但我没有看到它的主机被限制在127.0.0.1。修好了。谢谢完成后,我正在等待计时器:)