- how can php get ajax parameter?
Connection failed on Mac OS X: php + MySQL:
Error message:Warning: mysqli::mysqli():(HY000/2002):No such file or directory in /Library/WebServer/Documents/php/getDBInfo.php
solution:
first check if MySQL has been started on your device;
if the above operation does not work, replace “localhost” with “127.0.0.1”The reason is that “localhost” is a special name for the mysql driver making it use the unix socket to connect to mysql instead of the a tcp socket.(from http://stackoverflow.com/questions/4219970/warning-mysql-connect-2002-no-such-file-or-directory-trying-to-connect-vi @luismreis answer)
so much for now. Switch to div overlap~Bye~