ServerTune Logo Dedicated Servers Colocation VPS Server Management ServerTune.com
 
ServerTune HomeAbout usContact usHelp DeskKnowledgebaseSpecialLIVE Chat ServerTune
DirectAdmin VPS Server Management

Value, Power, and Performance :: Dedicated Servers starting $89 /month

Dedicated Server Hosting

Click here to view photos from the conferences we attended.   *** Follow ServerTune on: ServerTune is on Facebook ServerTune is on Twitter
 
Browse by category   Search
 


Call to unsupported or undefined function mysql_connect
Printer Friendly
email to a friend
Email to friend
Add comment Add comment
Views: 2033
Votes: 0
Comments: 0
Posted: 08 Aug, 2007
by: Customer Service :: S.
* * * * *
Updated: 14 Dec, 2009
by: Customer Service :: S.

If you get this error:

Call to unsupported or undefined function mysql_connect();

That means the Php-MySQL RPM is not installed. To install php-mysql module:

cPanel/whm, you can compile Apache/Php with MySQL either using the WHM and/or the following command at the prompt:

  • /scripts/easyapache

DirectAdmin, you can compile Php with MySQL at the prompt using the following commands:

  • cd /usr/local/directadmin/custombuild
  • ./build mysql

Generic Linux Server , you can install php-mysql at the prompt using the following commands:

  • /usr/bin/yum install -y php-mysql
Other articles in this Category
document HowTo: Tweak php for maximum execution time for scripts
document HowTo :: Install and configure FFmpeg and FFpeg-Php
document Php scripts returning errors when using: php_flag and php_value
document FFmpeg :: make: *** [libavcodec/imgresample.o] Error 1
document FFmpeg :: headers not found. Make sure you've built ffmpeg as shared libs
document Fatal error: Allowed memory size of 22468 bytes exhausted (tried to allocate 446810 bytes) in /path/file.php
document FFmpeg :: libamrnb.so.2: cannot open shared object file: No such file or directory
document HowTo secure your vBulletin Forum
document FFmpeg :: make: *** [ffmpeg_frame.lo] Error 1



RSS

Control Panel Licensing
cPanel Plesk Miva Merchant