[英]Cannot run mysql after moving data (Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist)
I come here from this topic 我来自这个话题
Where user has exactly the same problem. 用户有完全相同的问题。
I have installed Winamp (Apache+Mysql). 我已经安装了Winamp(Apache + Mysql)。 I moved my /data subfolders (backup) to mysql/data (installed folder). 我将/ data子文件夹(备份)移动到mysql / data(已安装文件夹)。 I originally had error that my port is in use, so I changed to 3307. The cause for this error could be freeze of mysqld-nt (not closed, stayed in memory) 我最初有我的端口正在使用的错误,所以我更改为3307。此错误的原因可能是mysqld-nt冻结(未关闭,留在内存中)
I am Windows user. 我是Windows用户。 My Mysql is part of Wamp server and has no any mysql_install_db in bin folder. Mysql是Wamp服务器的一部分,并且bin文件夹中没有任何mysql_install_db。 I don't use linux so I cannot use linux commands. 我不使用linux,所以不能使用linux命令。 Also I cannot run client bevazse server connection is not established so cannot type the command for client. 我也无法运行客户端,因为未建立服务器连接,因此无法为客户端键入命令。
Please help. 请帮忙。
The fact that port 3306 is in use could be a clue that your old Mysql server process is still running and hogging the port. 端口3306正在使用的事实可能表明您的旧Mysql服务器进程仍在运行并占用了该端口。 Because it's windows, you may have to reboot. 因为它是Windows,所以您可能必须重新启动。
Your data backup might have been corrupted, or not copied over correctly. 您的数据备份可能已损坏或未正确复制。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.