Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suse/Apache2/PHP: MySQL Connection

Status
Not open for further replies.

CodeDeficitDisorder

Technical User
Jul 18, 2002
66
US
Suse 9.1 Professional - No GUI at all, just a console.
Apache2
PHP
MySQL

I just installed MySQL and PHP, and I'm getting a database connection error. Does anyone recognize it? And, does anyone know what the solution is?



Warning: mysql_select_db(): Can't connect to local MySQL server through socket ''111'' (2) in /usr/local/apache2/htdocs/dg/test/blog/config.php on line 27

Warning: mysql_select_db(): A link to the server could not be established in /usr/local/apache2/htdocs/dg/test/blog/config.php on line 27
Unable to select database.
 
The second error will likely go away when you clear up the first.

Is MySQL running? What does your connection statement look like?


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
It seems like is not running the server:

Try:

ps auwx | grep mysqld

tell what you got

===================================
Never underestimate the power of stupid people in big numbers
===================================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top