2013-12-15 143 views

回答

1

要开始,你将需要:

A .sql script file containing a CREATE TABLE command 
MySQL Query Browser or phpMyAdmin 
Other MySQL database tools will require similar steps. 
An empty MySQL database already created 

MySQL查询浏览器可在 http://mysql.com/了MySQL GUI工具的一部分。这些相同的步骤可以用于大多数其他MySQL管理员工具。

Using the MySQL Query Browser, connect to your MySQL Server. 
From the Schemata panel, select the database you intend to add the new database table to. 
Choose File > Open Script. 
Navigate to the .sql file you wish to import. 
Click Open. 
Select Execute. 
Confirm that the new database table appears in the Schemata panel. 
+0

我创造了新的模式,我试图运行此脚本但也有已经第一线的错误:“未知表”像截图 – cinek181992

+0

第一条错误消息说有没什么数据库中选择,可以请你仔细检查一下。 –

+1

mysql查询浏览器帮助我,它运行 – cinek181992

0

只需打开一个终端,

登录到mysql

使用数据库,

源文件/到/ dump.sql

0

您可以使用命令行。

Shell> mysql -u[username] -p[password] -h[hostname] dbname < sqlScript.sql 
+0

看一个错误:http://i43.tinypic.com/2ihusyc.jpg我应该怎么输入作为一个dbname,当我没有任何数据库?在我们完成并安装了Linux的课程中,这个基础工作 – cinek181992

相关问题