SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

前端 未结 10 591
灰色年华
灰色年华 2020-12-04 12:49

I just installed Ubuntu 16.04 and installed web server on it. Everything works well, but I cannot access database. Even if I create new user and grant all privileges, I can\

10条回答
  •  无人及你
    2020-12-04 13:49

    With mysql Ver 14.14 Distrib 5.7.22 the update statement is now:

    update user set authentication_string=password('1111') where user='root';
    

提交回复
热议问题