请教这个MYSQL如何了?一导入库就也现有关问题

WBOY
Release: 2016-06-13 10:14:29
Original
986 people have browsed it

请问这个MYSQL怎么了?一导入库就也现问题,
请问这个MYSQL怎么了?一导入库就也现问题,


------解决方案--------------------
很明显没选择数据库
------解决方案--------------------
没有选择数据库。 导入前: use database;
------解决方案--------------------
表要建在库里面,你需要先建个数据库,然后use库, 再执行上面的sql.
------解决方案--------------------
#1046 没有数据库被选择

由于你导出时不是按数据库导出的,所以导入时要先进入你需要导入表的数据库,再导入

------解决方案--------------------
错误提示很明确了
------解决方案--------------------
在你的数据库.sql文件开始加上:
CREATE DATABASE /*!32312 IF NOT EXISTS*/`yourDB` /*!40100 DEFAULT CHARACTER SET utf8 */;

USE `yourDB`;
------解决方案--------------------
对的,你先进入数据库,然后导入
不过你的 zj 表不是已经存在了吗?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!