Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

前端 未结 6 1388
死守一世寂寞
死守一世寂寞 2020-12-24 00:38

I installed MySQL community server 5.7.10 using binary zip. I extracted the zip in c:\\mysql and created the data folder in c:\\mysql\\data. I crea

6条回答
  •  情歌与酒
    2020-12-24 01:32

    As suggested above, i had similar issue with mysql-5.7.18,
    i did this in this way

    1. Executed this command from "MYSQL_HOME\bin\mysqld.exe --initialize-insecure"
    2. then started "MYSQL_HOME\bin\mysqld.exe"
    3. Connect workbench to this localhost:3306 with username 'root'
    4. then executed this query "SET PASSWORD FOR 'root'@'localhost' = 'root';"

    password was also updated successfully.

提交回复
热议问题