如何办?我们1,更换空间或联系服务提供商,提供相关环保页2,更换相关的编程语言(未开发时)
MySQL导入WordPress Database Backup插件备份的数据文件时出错,用PhpMyAdmin导入sql文件时,MySQL 返回:#1100 - Table 'pma_column_info' was not locked with LOCK TABLES 错误。使用WordPress少不了经常要备份数据库,不管是插件备份的,还是其他方式备份的,恢复时都要导入数据库,而MySQL导入sql数据包时用的最多的就是PhpMyAdmin。用PhpMyAdmin导入时有时会报错。例如WordPress Database Backup插件自动备份的数据库文件导入时会提示:错误 SQL 查询: 编辑 SELECT `comment` FROM `phpmyadmin`.`pma_column_info` WHERE db_name = 'wordpress' AND table_name = '' AND column_name = '(db_comment)' MySQL 返回: #1100 - Table 'pma_column_info' was not locked with LOCK TABLES 这个错误与数据表锁定有关,解决方法也很简单:将备份得来的数据库文件解压(解压成一个sql文件)用Mircrosoft Office Word(版本无所谓)打开sql文件,编码要选择对,这个就是你当时建立数据库时选择的,一般情况下就是UTF-8,Word也会提示。打开替换(按CTRL+H),在查找内容里输入 <(LOCK TABLES)*(WRITE)>然后点高级,并在搜索选项下面勾选使用通配符,不然会提示找不到内容。选择全部替换就行了,记住要保存。将sql文件打包(也可以不打包)用PhpMyAdmin导入就行了。我有一段“MSYQL中系统找不到指定的路径的解决方法”,你可以照着下面的做一遍,我重装后经常mysql就不能启动了,然后我就照下面的做,居然每次都行C:\Documents and Settings\sunshine>cd c:\mysql\bin
C:\mysql\bin>mysql -u root -p
Enter password:
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
C:\mysql\bin>mysql -u root -p0000 ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
C:\mysql\bin>mysqld-nt
C:\mysql\bin>mysql -u root -p
Enter password: ****
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
C:\mysql\bin>mysql -help
ERROR 2005: Unknown MySQL Server Host 'elp' (11001)
C:\mysql\bin>mysqld
C:\mysql\bin>mysql -u root -p
Enter password:
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
C:\mysql\bin>net start mysql
发生系统错误 3。
系统找不到指定的路径。
C:\mysql\bin>mysqlshow
mysqlshow: Can't connect to MySQL server on 'localhost' (10061)
C:\mysql\bin>mysqld-nt -install
The service already exists!
The current server installed:
C:\mysql\bin>mysqld-nt -remove
Service successfully removed.
C:\mysql\bin>mysqld -install
Service successfully installed.
C:\mysql\bin>mysqld
C:\mysql\bin>mysqld --console
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)