Linux Admin Blog

System Administration, Linux, Solaris, Backup, Networking, Security, Mysql, Script, Tips & Tricks

Archive for October, 2009

Call to undefined function: mysql_connect()

Posted by sanjaydalal4u on October 23, 2009

Solutions:

Solution 1)   Remove php5-mysql with “apt-get remove php5-mysql”  and install it again or

Solution 2)   Check your php.ini file to ensure it’s including the mysql.so library (extension=mysql.so)  or

Solution 3)   Type “dpkg-reconfigure php5-mysql” (For ubuntu and debian users)

Posted in Problems & Solutions | Leave a Comment »