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

前端 未结 6 1397
死守一世寂寞
死守一世寂寞 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:35

    I had the same problem. For some reason --initialize did not work. After about 5 hours of trial and error with different parameters, configs and commands I found out that the problem was caused by the file system.

    I wanted to run a database on a large USB HDD drive. Drives larger than 2 TB are GPT partitioned! Here is a bug report with a solution:

    https://bugs.mysql.com/bug.php?id=28913

    In short words: Add the following line to your my.ini:

    innodb_flush_method=normal
    

    I had this problem with mysql 5.7 on Windows.

提交回复
热议问题