Php mysql群集页面无法启动
我在我的3个虚拟机上配置了mysql群集:Php mysql群集页面无法启动,php,mysql,Php,Mysql,我在我的3个虚拟机上配置了mysql群集: 带有ndb_mgm节点的Ubuntu12.04桌面位于192.168.1.11,并且没有安装mysql服务器 以及192.168.1.19和192.168.1.20上带有sql节点的2台ubuntu服务器12.04 现在我正试图在ubuntu桌面上运行我的网页: index.php 和db-info.php 当我尝试运行index.php文件时,我对未定义的mysql\u connect()进行了错误调用。是否需要在ndb\u mgm节点上安装m
- 带有ndb_mgm节点的Ubuntu12.04桌面位于192.168.1.11,并且没有安装mysql服务器
- 以及192.168.1.19和192.168.1.20上带有sql节点的2台ubuntu服务器12.04
现在我正试图在ubuntu桌面上运行我的网页: index.php
和db-info.php
当我尝试运行index.php文件时,我对未定义的mysql\u connect()进行了错误调用。是否需要在ndb\u mgm节点上安装mysql服务器 apt获取后安装php5 mysql 错误日志 [Wed May 29 14:25:20 2013][error][client 127.0.0.1]PHP警告: mysql_connect():不允许主机“192.168.1.11”连接到此 第5行/var/www/index.php中的MySQL服务器[Wed May 29 14:25:20 2013] [error] [client 127.0.0.1] PHP Warning: mysql_connect(): Host '192.168.1.11' is not allowed to connect to this MySQL server in /var/www/index.php on line 7 [Wed May 29 14:25:20 2013] [error] [client 127.0.0.1] PHP Warning: mysql_select_db(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /var/www/index.php on line 9 [Wed May 29 14:25:20 2013] [error] [client 127.0.0.1] PHP Warning: mysql_select_db(): A link to the server could not be established in /var/www/index.php on line 9
sudo apt-get install php5-mysql
thx,但现在我遇到了另一个错误,无法通过socket/var/run/mysqld/mysqld.sock连接到本地MySQL服务器(2)可能您还没有将MySQL实例配置为接受来自本地主机以外的主机的连接?