答案 0 :(得分: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 Query Browser是MySQL GUI Tools的一部分 http://mysql.com/。这些相同的步骤可用于大多数其他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.
答案 1 :(得分:0)
只需打开一个终端,
登录mysql
使用数据库,
源文件/ to / dump.sql
答案 2 :(得分:0)
您可以使用命令行。
Shell> mysql -u[username] -p[password] -h[hostname] dbname < sqlScript.sql