1
A
回答
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
只需打开一个终端,
登录到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
相关问题
- 1. 导入.sql文件到SQLite数据库
- 2. 如何导入SQL数据库文件
- 3. 从HTML文件导入数据到SQL数据库
- 4. 从txt文件导入数据到SQL数据库
- 5. 通过Rails将数据从SQL文件或Excel文件导入数据库
- 6. 导入CSV文件导入数据库
- 7. 如何从excel文件导出数据并导入到sql数据库?
- 8. 如何将SQL数据库从文件导入到Azure
- 9. 将数据从文本框导入到sql数据库中
- 10. SQL Server:从.mdf导入数据库?
- 11. 从SQL DUMP导入数据库模式
- 12. 使用CSLA将数据从文本文件导入到SQL数据库中
- 13. 导出 - 文本文件 - SQL数据库
- 14. 如何导入从文本文件数据到MySQL数据库
- 15. 在SQL Server Management Studio中导入数据库(SQL文件)
- 16. 将数据从csv文件导入IBM netezza sql数据库时出错
- 17. 如何将数据从Excel 2007 xlsx文件导入SQL Server 2000数据库?
- 18. 将数据从txt文件导入到IBM netezza SQL数据库的错误
- 19. 如何将数据从Sql Server CE数据库文件导入Excel?
- 20. 从多张Access数据库文件导入数据到SQL女士服务器
- 21. 将XML数据从文件导入到SQL Server 2008 R2数据库中
- 22. 将文本文件导入数据库
- 23. 导入数据到MS SQL数据库
- 24. 拆分文本文件导入Access数据库使用SQL
- 25. 如何将文本分隔文件导入到SQL数据库?
- 26. 将大文本文件导入到SQL Server数据库中
- 27. 将文本文件导入到SQL数据库中
- 28. 使用c将文本文件导入到SQL Server数据库#
- 29. 导入文本文件到MS Excel或SQL Server CE数据库
- 30. 将SQL记录从文件导入到sql数据库并更改类型
我创造了新的模式,我试图运行此脚本但也有已经第一线的错误:“未知表”像截图 – cinek181992
第一条错误消息说有没什么数据库中选择,可以请你仔细检查一下。 –
mysql查询浏览器帮助我,它运行 – cinek181992