简体   繁体   English

MySQL 1046错误

[英]Mysql 1046 error

I've started a new Wordpress site, and and trying to import a database form a site I had about 3 years ago. 我已经启动了一个新的Wordpress网站,并尝试从大约3年前的一个网站导入数据库。 Whenever I click on import, choose the file and set it away, I get this error: 每当我单击导入,选择文件并将其放置后,都会出现此错误:

Error 错误

SQL query: 

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

MySQL said:  
 #1046 - No database selected

I've tried a few fixes such as setting the Do not use auto interrupt to off, unticking allow interruption, setting the compatibility mode and changing the character set but nothing seems to work. 我尝试了一些修复程序,例如将“请勿使用自动中断”设置为“关闭”,取消允许中断,设置兼容模式以及更改字符集,但似乎无济于事。 I did import this file into another Wordpress blog about a year ago, so I know it worked then, but it's refusing now. 大约一年前,我确实将此文件导入到另一个Wordpress博客中,所以我知道它当时可以工作,但是现在拒绝了。

This is the phpmyadmin version: 这是phpmyadmin版本:

Server: 109.68.38.30 via TCP/IP
Server version: 5.1.52
Protocol version: 10
User: DM_7850_dbadmin@webserver1.wwwconfig.net
 MySQL charset:  UTF-8 Unicode (utf8)

I hope someone will be abel to help here. 我希望有人会在这里为您提供帮助。

尝试以下查询以选择数据库,然后检查

USE database_name;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM