Free Billing, Routing and Management software for Asterisk and VOIP
Home | Forums | Wiki | Manual | Open Source | Billing and BSS | My Blue Heart | astbss.org
DownLoad | Bugs | Help Wanted | Numbering Plan
  
 

Fatal error: Call to undefined function: mysql_connect()

 
By netko at Thu, 2005-11-03 19:42 | AstBill Software - General and Support

Fatal error: Call to undefined function: mysql_connect() in /var/www/drupal-4.6.3/includes/database.mysql.inc on line 31

i have checked

4.3. Apache

Make sure to edit /etc/php4/apache2/php.ini and check that

extension=mysql.so
extension=gd.so

and it is ok

anybody any idea about that?

mysql is not enabled

By london3 on Fri, 2005-11-04 15:17

Not sure, but it sounds like mysql is not enabled on your build of php.

Make a PHP page with just this on it:
Start PHP tag

 echo phpinfo();

Stop PHP tag

save it to your web server and then see what it says.  

If mysql is enabled, you should see a table called mySQL and the next column should say 'enabled'

If you do not see the listing for mysql, then mysql is NOT enabled in php.  You may have installed mysql on the server, but you did not enable it in php (or the version of php you have does not support mysql).

Check your documentation for your build or distribution of php to see how to enable mysql.

How can I enable MySQL? What command(s) do I need to use?

you need to compile php with the mysql support

# ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
# make
# make install

Don't forget to restart Apache

PS: Must Modern Linux Distro have PHP with MySQL enabled or you can just install a package.


ARE --

» login or register to post comments
  
BerliOS Developer LogoSourceForge.net Logo Drupal.org Logo