Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/71.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/3/flash/4.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 无法导入SQL_Mysql - Fatal编程技术网

Mysql 无法导入SQL

Mysql 无法导入SQL,mysql,Mysql,我正在迁移一个网站。当我尝试导入SQL脚本时,它不起作用。我得到以下错误: Error consulta SQL: -- -- Table structure for table `Log` -- DROP TABLE IF EXISTS `Log` ; MySQL ha dicho: Documentación #1046 - No database selected 如何修复此问题?在引用任何表之前,您需要在脚本顶部执行以下操作: USE database_name_here;

我正在迁移一个网站。当我尝试导入SQL脚本时,它不起作用。我得到以下错误:

Error
consulta SQL:

--
-- Table structure for table `Log`
--
DROP TABLE IF EXISTS  `Log` ;

MySQL ha dicho: Documentación

#1046 - No database selected 

如何修复此问题?

在引用任何表之前,您需要在脚本顶部执行以下操作:

USE database_name_here;

根据您的描述,这应该会有所帮助。

您是否使用SQL脚本MySQL导入数据库结构?