LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-14-2008, 03:21 AM   #1
syok
LQ Newbie
 
Registered: Jan 2006
Posts: 25

Rep: Reputation: 15
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
 
Old 07-14-2008, 01:22 PM   #2
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
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
 
Old 07-15-2008, 12:04 AM   #3
syok
LQ Newbie
 
Registered: Jan 2006
Posts: 25

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Software 3 06-28-2007 11:46 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration