Saturday, September 26, 2009

Steps on how to Fix Fatal error: Call to undefined function: mysql_connect()

1. command :sudo apt-get install php5-mysql
2. command :sudo dpkg-reconfigure php5-mysql
3. command :sudo /etc/init.d/mysql restart
4. command :sudo /etc/init.d/apache2 restart

1 comment:

  1. Cheers! That fixed the problem on my Ubuntu VPS at Linode. I was having that exact problem with CakePHP and now it's working.

    Thanks!

    ReplyDelete