Pregunta

I am getting the following error in MySQL

Warning: mysql_connect(): Connecting to 3.22, 3.23 & 4.0 is not supported.

How do I get around this?

My conn code is currently (excerpt) :

DEFINE ('DB_USER', '*********');
DEFINE ('DB_PASSWORD', '*********');
DEFINE ('DB_HOST', '*********');
DEFINE ('DB_NAME', '*********');

if ($dbc = mysql_connect (DB_HOST, DB_USER, DB_PASSWORD)) { // Make the connection.

Thank you.

¿Fue útil?

Solución

Upgrade your MySQL Server to 5.0 (if you doesnt want "translate" problems, for eg with UDF, don't upgrade to 5.1) and if you are working with PHP, use mysqli library (it has better support than mysql). It comes with PHP 5, you must comment the mysql reference and uncomment mysqli reference. Is more easy to use and powerful.

You can found more help about mysqli here: http://php.net/manual/en/book.mysqli.php

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top