about php.ini and mysql linux | Unix Linux Forums | Web Programming

  Go Back    


Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

about php.ini and mysql linux

Web Programming


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-27-2010
fang_xiaoan fang_xiaoan is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 30 December 2012, 11:12 PM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
about php.ini and mysql linux

I can't use mysql .How should i config the file of php.ini . the message:

Fatal error: Call to undefined function mysql_errno() in /var/www/html/inc/dv_clssql.php on line 129



how should i do? please help me
Sponsored Links
    #2  
Old 08-28-2010
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 25 November 2014, 10:51 AM EST
Location: /dev/ph
Posts: 4,836
Thanks: 64
Thanked 434 Times in 402 Posts
You really have not given us sufficient information to help you.

First, can you connect to your MySQL database from the command line i.e.

Code:
mysql <database> -u <username> -p <password>

If you are connecting to a different host you will have to add a "-h <host>" option as well.

Have to configured your php.ini file to contain the right variables and values so that your PHP scripts can access the database?
Sponsored Links
    #3  
Old 08-29-2010
fang_xiaoan fang_xiaoan is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 30 December 2012, 11:12 PM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I can connect to my MySQL database,But i don't know how configure the file "php.ini".
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
checking which mysql dbd is installed on linux prakash.gr Shell Programming and Scripting 6 04-26-2009 12:43 AM
setup of user a/c in mysql in linux alma UNIX for Dummies Questions & Answers 1 04-19-2007 08:57 PM
run MySQL on linux aman_mlt Linux 1 03-13-2006 05:57 AM
mysql not starting with fedora linux arunkumar_mca Linux 1 09-22-2005 09:26 PM
Linux/Unix/PHP/MySQL & servers? kolton UNIX for Dummies Questions & Answers 5 04-11-2001 12:05 AM



All times are GMT -4. The time now is 12:03 AM.