Fatal error: Call to undefined function mysql_connect() in C

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

FPL_NMS
Posts: 37
Joined: Sun Aug 21, 2005 1:17 am

Post by FPL_NMS »

TheWitness wrote:These are problematic:
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
Indicates you are trying to load the extension twice:

Check this out and tell me if I am wrong, I just found a possible solution to the already loaded problem. In the php.ini file, I removed the ";" semi-colon from in front of the extension=php_mysql.dll entry, and I also entered
extension_dir = c:\php\ext
extension=php_mysql.dll
extension=php_snmp.dll
extension=php_sockets.dll
I decided to try and add the ";" back in front of the extension parameter and the problem went away. I removed it, and it came back, added it back and it went away. Not sure why?!?!, but it works.
My 2 cents FPL_NMS


Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Indicates that PHP's builtin snmp support can not find the mib files. You should set the MIBDIRS environment variable and then try this again. In order to apply for Apache/IIS, you may have to reboot.

TheWitness
User avatar
rickmccl
Posts: 16
Joined: Wed Aug 03, 2005 11:29 am

Post by rickmccl »

I didn't put "c:\mysql\bin" in the system path, so I had to copy libmysql.dll to c:\php...
big o
Posts: 1
Joined: Fri Aug 18, 2006 7:11 pm
Location: dallas
Contact:

Fatal error: Call to undefined function mysql_connect() in

Post by big o »

i know mysql is working with php it tells me so when i run the phpinfo program.... but my i still get that error message my sql is up and running and so is apache and php works fine by itself and apache what else could be the problem.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Please read the install guide in my signature.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest