ITPub博客

首页 > > > linux 批量重命名文件

linux 批量重命名文件

作者:longmanma 时间:2020-02-19 23:18:20 0 删除 编辑

    


To import

Type the following command to import sql data file:

$ mysql -u username -p -h localhost>< data.sql

In this example, import 'data.sql' file into 'blog' database using Sathish as username:

$ mysql -u sat -p -h localhost blog < data.sql

If you have a dedicated database server, replace localhost hostname with with actual server name or IP address as follows:

$ mysql -u username -p -h 202.54.1.10 databasename < data.sql

OR use hostname such as mysql.cyberciti.biz

$ mysql -u username -p -h mysql.cyberciti.biz database-name < data.sql

If you do not know the database name or database name is included in sql dump you can try out something as follows:

$ mysql -u username -p -h 202.54.1.10 < data.sql

Refer: http://dev.mysql.com/doc/refman/5.6/en/mysqldump.html

If you want a GUI tool then you could probably use SQLyog

参考文献:

http://stackoverflow.com/questions/11407349/mysql-how-to-export-and-import-an-sql-file-from-command-line

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2730/viewspace-3169756/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-12-18

  • 博文量
    492
  • 访问量
    12025