Mysql

Support for webhosts that use CentOS
Post Reply
massive
Posts: 3
Joined: 2006/02/15 02:49:09

Mysql

Post by massive » 2006/02/15 03:04:45

I am trying to install phpmyadmin but i got the following error :

Cannot load mysql extension

I checked phpinfo() for mysql support and exists

Any idea why i am getting this error?

massive
Posts: 3
Joined: 2006/02/15 02:49:09

Re: Mysql

Post by massive » 2006/02/16 00:19:15

at last i found the solution

yum install php-mysql

Gopher_CZ
Posts: 8
Joined: 2006/01/09 20:58:00

Mysql

Post by Gopher_CZ » 2006/03/07 12:55:56

HI, I have similar problem, but not solved.
I installed php 5.0.4 with php-mysql extension.
I installed mysql and it works. It is possible use MySQL console, login is root (pass is not set yet).
But it is not possible use php function mysql_connect() (for exammple when I try start phpmyadmin, it write me that mysql module is not loaded).
but phpinfo() tells me that /etc/php.d/mysql.ini was parsed (together with others).

problem is not in iptables (I stopped it, still not worked)
does anybody know where is the problem?


example of small code>



WWW viewer show me only
PHP works

nothing more.
error_reporting in php.ini is set as E_ALL & E_WARNING

Gopher_CZ
Posts: 8
Joined: 2006/01/09 20:58:00

Re: Mysql

Post by Gopher_CZ » 2006/03/08 09:44:49

I recompilled php with option --with-mysql=/usr/lib/mysql
restart httpd
now I have working PHP 5.1.2 but phpmyadmin still write cannot load mysql extension.
connection to mysql still not works.

any idea what to do?

Gopher_CZ
Posts: 8
Joined: 2006/01/09 20:58:00

Re: Mysql

Post by Gopher_CZ » 2006/03/08 10:15:53

:-D

restart mysqld and it works. :-D
8-) :lol:

Post Reply

Return to “CentOS 4 - Webhosting Support”