Page 1 of 1
MySQL connection error
Posted: 25 Oct 2005, 12:14
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?
Posted: 25 Oct 2005, 12:20
by reality
Oh... mantis version is 1.0.0rc2.
Posted: 25 Oct 2005, 14:18
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. "
Posted: 25 Oct 2005, 15:31
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...
Posted: 27 Oct 2005, 12:37
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).
Posted: 08 Nov 2005, 16:13
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"
Posted: 08 Nov 2005, 16:18
by anni
I am using PHP 5.0.5 anf mySQL 4.0.22, Mantis 0.19.3