Table 'mysql.user' doesn't exist:ERROR

后端 未结 8 1692
不知归路
不知归路 2020-12-13 14:58

I am creating a db in mysql for a java program.My program works well in my friends system.But I have some problem with my mysql.

The query is below:

         


        
8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 15:26

    Looks like something is messed up with your MySQL installation. The mysql.user table should definitely exist. Try running the command below on your server to create the tables in the database called mysql:

    mysql_install_db
    

    If that doesn't work, maybe the permissions on your MySQL data directory are messed up. Look at a "known good" installation as a reference for what the permissions should be.

    You could also try re-installing MySQL completely.

提交回复
热议问题