Re: cant use mysql_connect [message #179438 is a reply to message #179434] |
Sun, 28 October 2012 19:21 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Markus Grob wrote:
> I have changed to Apache 2.4 with PHP 5.4 and MySQL 5.5. MySQL is
> running and all databases were imported from the earlier version.
> Apache is running and php_info gives me the hint, that mysqlnd was found:
You probably mean phpinfo().
> PHP Version 5.4.4
> […]
> mysqlnd
> mysqlnd enabled
> Version mysqlnd 5.0.10 - 20111026 - $Id:
> b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $
> Compression supported
> SSL supported
>
> But if I now try to connect to the database, pypmyadmin tells me, that
> mysql can't be found: Cannot load mysql extension.
>
> My one site tells me the same:
> Fatal error: Call to undefined function mysql_error() in...
>
> netstat tells me, that mysql is waiting on 3306.
The problem is (obviously) not that your MySQL server is not running or not
responding. The problem is (obviously) that PHP's mysqlnd (MySQL Native
Driver) extension does not provide the obsolete, insecure mysql_* functions.
It uses features provided by other MySQL extensions, mysqli or PDO MySQL,
instead.
RTFM: <http://www.php.net/manual/en/mysqlnd.overview.php>
PointedEars
--
When all you know is jQuery, every problem looks $(olvable).
|
|
|