Comments - Troubleshooting Connection Issues

8 years, 4 months ago Wei Yang

Mmm, I'm having trouble pulling the IPv6 addresses as a resource using mysql_connect() - is that a php (ver 5.6.16) problem or DB (mariaDB 5.5.44) problem? The error I get is:

mysql_connect(): Unknown MySQL server host

 
8 years, 4 months ago Ian Gilfillan

For debugging purposes, try connect directly with just the client first. If that works, you can try get it working in PHP. If not, it's a connection issue. Also note that mysql_connect has been deprecated since PHP 5.5.0, so really shouldn't be used anymore.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.