Created
April 17, 2012 10:07
-
-
Save koriym/2405062 to your computer and use it in GitHub Desktop.
Warning: mysqli_connect(): (HY000/2002)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning: mysqli_connect(): (HY000/2002): No such file or directory | |
このエラーはソケットファイル未定義の場合に(も)出る | |
対処法: | |
1) mysqladmin version (macportsはmysqladmin5 versioん)等のコマンドでsocketファイルの位置を知る | |
2) mysqli.default_socket = 等にソケットファイルのパスを追加 | |
※php.iniの位置が分からない場合は | |
php -iでphp.iniファイルの場所を調べる |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment