LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Calling to mysql error (https://www.linuxquestions.org/questions/suse-opensuse-60/calling-to-mysql-error-655592/)

syok 07-14-2008 03:21 AM

Calling to mysql error
 
hello there,
finally i have to come here......
php5 in SUSE 10 not support mysql module automatically.Check
with /etc/php5/php5 -m showed:
[PHP Modules]
date
hash
libxml
pcre
Reflection
session
SimpleXML
SPL
standard
xml

[Zend Modules]


ERROR : Fatal error: Call to undefined function mysql_connect() under php source program.
$s = mysql_connect($svr,$usr,$passw) or die("$svr Connection Fail\n");


is there an easy way to enable it. i'm thinking to recompiled php4

tq

BlueC 07-14-2008 01:22 PM

just install the php5-mysql RPM. it should be in your repos, or you can find it here:

http://rpmfind.net/linux/rpm2html/se...ery=php5-mysql

syok 07-15-2008 12:04 AM

Thank for all...mysql module was not ticked during installation . i just tick just now and it installed form cd .it works now...

i'm using sles 10


All times are GMT -5. The time now is 07:16 PM.