PDOException: SQLSTATE[HY000] [2002] No such file or directory

前端 未结 10 2154
太阳男子
太阳男子 2020-12-05 11:19

I have put PushChatServer dir in htdocs folder and create database puschat try to run @\"http://localhost/PushChatServer/api/test/database.php\"

Then I got following

10条回答
  •  时光说笑
    2020-12-05 11:33

    Just ran into this same issue and the problem is the password. In the tutorial the author lists the password as:

    "d]682\#%yl1nb3"
    

    So as per the suggestion given by @Marki555, I looked in the config file - api_config.php. and the password listed there is:

    "d]682\#%yI1nb3"
    

    The upper case 'I' is what caused the issue because the password you set for user on the db has the password with the lowercase l but it really is looking for the uppercase I. After I changed the pushchat user's password to have an uppercase i, it worked!

提交回复
热议问题