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

后端 未结 8 1627
不知归路
不知归路 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:21

    Your database may be corrupt. Try to check if mysql.user exists:

    use mysql;
    select * from user;
    

    If these are missing you can try recreating the tables by using

    mysql_install_db

    or you may have to clean (completely remove it) and reinstall MySQL.

提交回复
热议问题