MySQL connection error

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
reality
Posts: 7
Joined: 25 Oct 2005, 12:00

MySQL connection error

Post by reality »

Light went off in our office and server was shut down. After this error has occured:
"Fatal error: Call to undefined function: mysql_connect() in /usr/share/mantis/core/adodb/drivers/adodb-mysql.inc.php on line 338
".
Problem was that debian-sys-maint hasn't closed the table properly.
Database itself seems to be okay. I've checked it with mysqlcheck -r. Is there any way to fix this?
reality
Posts: 7
Joined: 25 Oct 2005, 12:00

Post by reality »

Oh... mantis version is 1.0.0rc2.
reality
Posts: 7
Joined: 25 Oct 2005, 12:00

Post by reality »

I think I also might have uninstalled some important package, I can't figure out which one exactly, but my install.php script says:"Checking PHP support for database type BAD
database is not supported by PHP. Check that it has been compiled into your server. "
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

I think that's correct: you need to check your PHP installation and make sure that the MySQL client is available to it.

<?php phpinfo(); ?> could help you to work out where the problem is maybe...
reality
Posts: 7
Joined: 25 Oct 2005, 12:00

Post by reality »

I figured out what the problem was. Php4-mysql package was installed, but not configured (mysql.so wasn't enabled in php.ini file).
anni

Post by anni »

Can some onle clearly tell what was done in php.ini file to make mysql connect work? i am having the same problem. I get the error Fatal error: "Call to undefined function mysql_connect() in D:\bugzilla\mantis\core\adodb\drivers\adodb-mysql.inc.php on line 338"
anni

Post by anni »

I am using PHP 5.0.5 anf mySQL 4.0.22, Mantis 0.19.3
Post Reply