mysql - I deleted the user table! how can I recover it?

前端 未结 3 632
[愿得一人]
[愿得一人] 2021-01-20 00:58

I sure i deleted the table \'mysql\' in an accident , then have maked this error \"Table mysql.user dosen\'t exist\"

How can i fix it , or create a new table \'mysql

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-20 01:13

    Note you did not just delete the table - you deleted the entire mysql permission database. You need to locate the script 'mysql_install_db'. This will recreate the mysql permissions database.

    Be aware that by deleting and recreating the permission database - other applications may stop working because their users/etc no longer exist.

提交回复
热议问题