Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 将生产数据库导入到另一台服务器会引发错误_Mysql_Database_Import - Fatal编程技术网

Mysql 将生产数据库导入到另一台服务器会引发错误

Mysql 将生产数据库导入到另一台服务器会引发错误,mysql,database,import,Mysql,Database,Import,我使用mysqldump导出了一个2.5 GB的生产数据库。 我试图通过运行 mysql-urootmoodle

我使用
mysqldump
导出了一个2.5 GB的生产数据库。 我试图通过运行

mysql-urootmoodle 它运行了几秒钟就卡住了。当我选中
mysql\u error.log

2018-06-27 11:14:36 5000 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'max_value' at position 4 to have type varbinary(255), found type varchar(255).
2018-06-27 11:18:33 5124 [Warning] InnoDB: A long semaphore wait:
--Thread 5200 has waited at ibuf0ibuf.cc line 4403 for 241.00 seconds the semaphore:
Mutex at 00C3C3F0, Mutex IBUF created ibuf0ibuf.cc:516, lock var 2

2018-06-27 11:18:33 5124 [Warning] InnoDB: A long semaphore wait:
--Thread 4212 has waited at ibuf0ibuf.cc line 4403 for 241.00 seconds the semaphore:
Mutex at 00C3C3F0, Mutex IBUF created ibuf0ibuf.cc:516, lock var 2

2018-06-27 11:18:33 5124 [Warning] InnoDB: A long semaphore wait:
--Thread 3956 has waited at btr0pcur.cc line 444 for 241.00 seconds the semaphore:
X-lock on RW-latch at 04844024 created in file buf0buf.cc line 1478
a writer (thread id 4440) has reserved it in mode  exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time read locked in file not yet reserved line 0
Last time write locked in file btr0cur.cc line 293
2018-06-27 11:18:33 5124 [Warning] InnoDB: A long semaphore wait:
--Thread 4440 has waited at buf0buf.cc line 4145 for 241.00 seconds the semaphore:
S-lock on RW-latch at 0483BA74 created in file buf0buf.cc line 1478
a writer (thread id 0) has reserved it in mode  exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time read locked in file dict0stats.cc line 1556
Last time write locked in file buf0buf.cc line 5349
2018-06-27 11:18:33 5124 [Note] InnoDB: A semaphore wait:
--Thread 5200 has waited at ibuf0ibuf.cc line 4403 for 241.00 seconds the semaphore:
Mutex at 00C3C3F0, Mutex IBUF created ibuf0ibuf.cc:516, lock var 2
在生产数据库工作正常的情况下,会出现什么问题?

我正在使用windows server 2012中的
10.2.8-MariaDB-MariaDB.org二进制发行版
xampp 3.2.2

尝试运行mysql\u upgrade\u服务命令

mysql_upgrade_service --service=MySQL

有关详细信息,请参见

如何运行此命令?只是在命令提示符下复制和粘贴?它向我抛出了一个错误
第1/8阶段:更改服务配置,致命错误:OpenService因1060失败
这是一个完全不同的错误,您能提供有关您在服务器上运行的内容的更多详细信息吗?virtualbox,wamp?我在虚拟服务器中使用xampp,我以前安装过wamp,但它已经被卸载。恐怕这是一个基于xampp/wamp的问题。我不知道如何解决这个问题。也许是另一个问题?