简体   繁体   English

移动数据后无法运行mysql(严重错误:无法打开和锁定特权表:表'mysql.host'不存在)

[英]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冻结(未关闭,留在内存中)

  • port is 3307 端口是3307
  • data folder is in my.ini is set correctly 数据文件夹位于my.ini中,设置正确
  • client run results in close because mysql-nt doesnt run 客户端运行结果关闭,因为mysql-nt无法运行
  • mysqld-nt Freezes console. mysqld-nt冻结控制台。
  • cannot run console 无法运行控制台
  • mysqld-nt is closed (manually) 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.

相关问题 致命错误:无法打开和锁定权限表:表 'mysql.host' 不存在 - Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist Mysql/mariadb“无法打开和锁定权限表:表‘mysql.servers’不存在” - Mysql/mariadb "Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist" 无法打开和锁定权限表:表 'mysql.user' 不存在 - Can't open and lock privilege tables: Table 'mysql.user' doesn't exist Docker中的Bootstraping Percona Xtradb Cluster出现错误:无法打开和锁定特权表:表'mysql.user'不存在 - Bootstraping Percona Xtradb Cluster in Docker gives the error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist MySQL致命错误:无法打开和锁定权限表:文件格式“用户”不正确 - MySQL Fatal error: Can't open and lock privilege tables: Incorrect file format 'user' Mysql给我:“无法打开和锁定特权表:表'主机'是只读的” - Mysql gives me:“Can't open and lock privilege tables: Table 'host' is read only” 如何修复致命错误:无法打开和锁定特权表:表 '.\mysql\proxies_priv' 被标记为已崩溃并且最后(自动?)修复失败 - How do I fix Fatal error: Can't open and lock privilege tables: Table '.\mysql\proxies_priv' is marked as crashed and last (automatic?) repair failed 服务mysql启动在我的日志文件中留下“特权表:表'mysql.user'不存在”并且服务器失败 - service mysql start leaves “privilege tables: Table 'mysql.user' doesn't exist” in my log file and the server fails 将sqlite更改为mysql后出错,表不存在? - Getting error after changed sqlite to mysql, table doesn't exist? 备份后不存在MySQL错误1146表 - MySQL ERROR 1146 table doesn't exist after backup
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM