![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In article 34d0f366-f103-49b6-b2ff-c56c6b97089b...oglegroups.com>, "css-discuss.org" <janis.rough (AT) gmail (DOT) com> wrote: I am getting a connection error. My log file says ready for connections. This is the php error I get: Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL server on '99.XXX.XXX.XXX:3306' (60) in /Library/WebServer/ Documents/test/db.php on line 9 This is the code: $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname); if (!$mysqli){die('Connect Error: ' . mysqli_connect_error()); } It isn't saying a permission error. I granted the database permissions to the root user on the database and global permissions. How can I troubleshoot the connection? I tried to telnet to the server. It said connection refused. I am running the php page on my laptop. The mysql/php server is on a g5. I have it outside the firewall for testing only. No real data. Connectino error could be that the server isn't running or isn't running on that port or something else entirely. Have you looked at /var/log/apache2/error_log and the transfer_log? What do they say? |
#3
| |||
| |||
|
|
I am getting a connection error. My log file says ready for connections. This is the php error I get: Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL server on '99.XXX.XXX.XXX:3306' (60) in /Library/WebServer/ Documents/test/db.php on line 9 This is the code: $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname); if (!$mysqli){die('Connect Error: ' . mysqli_connect_error()); } It isn't saying a permission error. I granted the database permissions to the root user on the database and global permissions. How can I troubleshoot the connection? I tried to telnet to the server. It said connection refused. I am running the php page on my laptop. The mysql/php server is on a g5. I have it outside the firewall for testing only. No real data. |
#4
| |||
| |||
|
|
On Thu, 01 Sep 2011 15:52:35 -0700, Michael Vilain wrote: In article 34d0f366-f103-49b6-b2ff-c56c6b97089b...oglegroups.com>, "css-discuss.org"<janis.rough (AT) gmail (DOT) com> wrote: I am getting a connection error. My log file says ready for connections. This is the php error I get: Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL server on '99.XXX.XXX.XXX:3306' (60) in /Library/WebServer/ Documents/test/db.php on line 9 This is the code: $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname); if (!$mysqli){die('Connect Error: ' . mysqli_connect_error()); } It isn't saying a permission error. I granted the database permissions to the root user on the database and global permissions. How can I troubleshoot the connection? I tried to telnet to the server. It said connection refused. I am running the php page on my laptop. The mysql/php server is on a g5. I have it outside the firewall for testing only. No real data. Connectino error could be that the server isn't running or isn't running on that port or something else entirely. Have you looked at /var/log/apache2/error_log and the transfer_log? What do they say? He said the logs say mysql server is waiting for connection. But we do need to find out if connections on port 3306 get through to whatever that IP address is. Which means it's time to fire up telnet on the webhost and use it to try to connect to the mysql serve. |
#5
| |||
| |||
|
|
I am getting a connection error. My log file says ready for connections. This is the php error I get: Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL server on '99.XXX.XXX.XXX:3306' |
#6
| ||||
| ||||
|
|
I am getting a connection error. My log file says ready for connections. This is the php error I get: Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL server on '99.XXX.XXX.XXX:3306' (60) in /Library/WebServer/ Documents/test/db.php on line 9 |
|
This is the code: $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname); if (!$mysqli){die('Connect Error: ' . mysqli_connect_error()); } |
|
It isn't saying a permission error. I granted the database permissions to the root user on the database and global permissions. How can I troubleshoot the connection? I tried to telnet to the server. It said connection refused. |
|
I am running the php page on my laptop. The mysql/php server is on a g5. I have it outside the firewall for testing only. No real data. |
![]() |
| Thread Tools | |
| Display Modes | |
| |