简体   繁体   中英

(2002) Error:Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)

Please help..

I am using yahoo small business web hosting. I have uploaded the files to the server and database also. I had given the host name as 'mysql'. Still cant access the site.

With YaHoo Webservices mysql seems to run on a different machine than your code, so you need to connect to host mysql instead of localhost :

See YaHoo Help " Why can't I access my database? "

  1. Find the my.cnf on program files
  2. Change the default socket location to '/tmp/mysq.sock'
  3. Restart Mysql

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM