Help please Fatal error: Call to undefined function mysql_co
Moderators: Developers, Moderators
Help please Fatal error: Call to undefined function mysql_co
I am getting
Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 338
When I try to start cacti for the first time.
I am using windows XP pro with IIS
Mysql, and net-snmp- rrdtool all work with PHP Version 5.0.5
php seems to be working something is wrong with my mysql can someone please help?
Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 338
When I try to start cacti for the first time.
I am using windows XP pro with IIS
Mysql, and net-snmp- rrdtool all work with PHP Version 5.0.5
php seems to be working something is wrong with my mysql can someone please help?
mysql_connect () has been deprecated in favor of mysql_real_connect().
Please check http://mysqldatabaseadministration.blog ... ll-to.html
I encountered same error with MySQL 4.1, but when changed my MySQL to older version v4.0.12, the error disappeared.
It seems to me that newer MySQL does not recognize mysql_connect() function.
Please check http://mysqldatabaseadministration.blog ... ll-to.html
I encountered same error with MySQL 4.1, but when changed my MySQL to older version v4.0.12, the error disappeared.
It seems to me that newer MySQL does not recognize mysql_connect() function.
Follow step #6 under MySQL in the guide in my signature.
| 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 |
Call to undefined function mysql_connect()
I am getting the same error on first attempt to use Cacti.BSOD2600 wrote:Follow step #6 under MySQL in the guide in my signature.
I've tried all the steps in your guide and checked all the config files etc.
Any more hints as to what's going on?
My specific message is:
Fatal error: Call to undefined function mysql_connect() in C:\CACTI_Monitoring\cacti-0.8.6g\lib\adodb\drivers\adodb-mysql.inc.php on line 338
I'm on a Windows 2003 server std edition with SP1, with PHP 5 and MySql5 nad latest Cacti software from the site.
MySQL 5 is not supported with cacti yet. Please use an older version.
| 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 |
Removed MYsql5, installed Mysql4.1.BSOD2600 wrote:MySQL 5 is not supported with cacti yet. Please use an older version.
Applied all set up steps in your guide including the old password stuff.
I can use Mysql in DOS window as user cactiuser with password cactipw accepted OK.
BUT, still get exactly same error message from cacti in browser.
Any more help you can provide, please?
Besides appling the old password trick, outlined in my guide (that I got from MySQL.com). Nope. That's what you need to do to make it work.
Paste the output of the following: php -m
Paste the output of the following: php -m
| 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 |
Fatal error: Call to undefined function mysql_connect()
Output is:-BSOD2600 wrote:Besides appling the old password trick, outlined in my guide (that I got from MySQL.com). Nope. That's what you need to do to make it work.
Paste the output of the following: php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib
[Zend Modules]
Well you have the mysql module, so you must have not followed the guide (mine or the one at mysql.com) on how to get older mysql clients working with PHP. I suggest you re-read and go over the steps again.
Last resort is to use the php_mysqli.dll extention. Only works with php5.
Last resort is to use the php_mysqli.dll extention. Only works with php5.
| 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 |
Who is online
Users browsing this forum: No registered users and 0 guests