mysql_connect() error
Moderators: Developers, Moderators
mysql_connect() error
HELP!
I am getting the following error when trying to launch cacti ...
Windows 2000 -
PHP 5.0.4
APACHE 2.0.53
SQL 4.1.10a
I extensions for php_mysql.dll are setup correctly in php.ini aswell ...
There error is:
Fatal error: Call to undefined function mysql_connect() in C:\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 338
When i stop sql server i have the same error.
Thank you for help
I am getting the following error when trying to launch cacti ...
Windows 2000 -
PHP 5.0.4
APACHE 2.0.53
SQL 4.1.10a
I extensions for php_mysql.dll are setup correctly in php.ini aswell ...
There error is:
Fatal error: Call to undefined function mysql_connect() in C:\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 338
When i stop sql server i have the same error.
Thank you for help
-
- Cacti User
- Posts: 97
- Joined: Thu Mar 24, 2005 4:59 am
- Location: Brussels, Belgium
You sure you entered in the mysql username and password into the config file? Is the mysql service running?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
php extensions directory not set correctly
Verify that you only have the one php.ini file. Some installers will try to put one in the system folder (C:\windows), and the executable will use this ini rather than the one in your php folder (C:\php\php.ini is mine)
If you only have the one ini then try to run cmd.php inside of a command shell. Start -> Run. CMD +enter.
If the extensions directory in your php.ini is not set correctly, you will see an alert error. It will tell you that the MySQL dll could not be found. Change the directory to an absolute path and it should fix the issue.
The reason you use the command shell is that when a person accesses the webpage it uses the Iusr account and sends the errors to that desktop (which will never be seen). When you use the command shell, the machine processes the exe as the logged in user - allowing you to see the error message.
Make sure that all of your extension directory and include directories are correct, and all should work.
If you only have the one ini then try to run cmd.php inside of a command shell. Start -> Run. CMD +enter.
If the extensions directory in your php.ini is not set correctly, you will see an alert error. It will tell you that the MySQL dll could not be found. Change the directory to an absolute path and it should fix the issue.
The reason you use the command shell is that when a person accesses the webpage it uses the Iusr account and sends the errors to that desktop (which will never be seen). When you use the command shell, the machine processes the exe as the logged in user - allowing you to see the error message.
Make sure that all of your extension directory and include directories are correct, and all should work.
Who is online
Users browsing this forum: No registered users and 0 guests