Can't connect to local MySQL server through socket -


When I upload it or submit a page, I get the following error on my site:

>

What does this mean in the world? Instead of Mysql_real_escape_string () it means that you have mysql_connect (), because the error is being reported on the phone.

In some circumstances, the mysql extension automatically uses the default settings in php.ini Will try to fail at my.cnf if they are not available - which are not clearly valid Is not or it may be that the settings are valid, but mysqld is not running.

Did you find such scripts that are successfully adding to the database?

Do you have a user name and password database?

Try:

  Check_ring (); User $ = ''; // Fill out your details $ password = ''; // Fill out your details $ host = array ('localhost', '127.0.0.1', $ _SERVER ['HTTP_HOST'], $ _SERVER ['SERVER_ADDR']); Forex currency ($ $ additional as host) {try_con ($ addr, $ user, $ password); Try_con ($ addr. ': 3306', $ user, $ password); } Function try_con ($ host, $ user, $ password) {$ dbh = mysql_connect ($ host, $ user, $ password); If ($ dBH) {print "$ host with connected ok, $ user, $ password 
\ n"; } Else {print "failed with $ host, $ user, $ password
\ n"; }} Function check_running () {// It assumes that you are using Apache on UNIX / Linux box $ chk = `ps -ef | Grep httpd | Grep -v grep `` If ($ chk) {Print "check for mysqld process:" `Ps -ef | Grep mysqld | Grep -v grep `"
"\ n"; } Can not examine other {print} "Maxcilled Process"
" }}

hh

c.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -