Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

前端 未结 18 2321
轮回少年
轮回少年 2020-12-04 15:29

I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried t

18条回答
  •  旧时难觅i
    2020-12-04 15:43

    If you have a server which used to happily run MySQL, but now gives this error, then an uninstall and re-install of MySQL is overkill.

    In my case, the server died and took a few disk blocks with it. This affected a few files, including /var/lib/mysql/mysql/host.frm and /var/lib/mysql/mysql/proc.frm

    Luckily, I could copy these from another server, and this got me past that table error.

提交回复
热议问题