[英]Unable to import database (.sql file) from phpmyadmin
You need to create a new database before import sql file. 您需要在导入sql文件之前创建一个新数据库。 Just create a new database or select any database you've created before. 只需创建一个新数据库或选择之前创建的任何数据库即可。 Then import sql file. 然后导入sql文件。
Before being able to add tables you first need to create a database and then say you're going to use this database to add the tables: 在能够添加表之前,首先需要创建一个数据库,然后说要使用该数据库来添加表:
CREATE DATABASE IF NOT EXISTS `test`
USE `test`;
And then you can CREATE TABLE
. 然后您可以CREATE TABLE
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.