Linux本地服务器导入sql脚本到远程mysql数据库
2016-10-28 11:11
381 查看
操作步骤
安装mysql客户端。apt-get install mysql-client-5.6
连接远程服务器,输入密码登录
mysql -h host –u userName -p dbName Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 235196939 Server version: 5.6.29 Source distribution Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
远程导入本地sql
mysql>
sorce /root/test.sql
相关文章推荐
- 批量将本地sql导入到服务器mysql数据库中,和将服务器中的sql导出到本地
- 将本地的MS SQL Server数据导入到远程服务器上
- 本地sql连接远程服务器sql(图示)
- Linux VPS/服务器上轻松导入、导出MySQL数据库的几种方法
- 关于从服务器oracle11g上导出的sql (编码格式不同时)再导入到本地oracle11g上时乱码的处理的
- 在linux中导入sql文件的方法分享(使用命令行转移mysql数据库)
- 数据批量导入远程SQL服务器的亲身实践
- 调用远程Sql服务器执行脚本
- Mysql数据库从本地导出、服务器上导入时报:ERROR 2005 (HY000): Unknown MySQL server host 'mysql' 的一种解决方案
- Linux VPS/服务器 网站及数据库自动本地备份并FTP上传备份脚本
- EAS 从远程服务器或本地服务器导入解决方案时,出现无法创建连接到所选的数据中心?
- 本地SQL脚本操作外部服务器结果集
- 用SQL语句将远程SQL Server数据库中表数据导入到本地数据库相应的表中
- CentOS Linux自动备份MySQL数据库到远程FTP服务器并删除指定日期前的备份Shell脚本(一)
- linux 在本地显示远程服务器的命令
- 本地SQL脚本操作外部服务器结果集
- Mysql数据库从本地导出、服务器上导入时报:ERROR 2005 (HY000): Unknown MySQL server host 'mysql' 的一种解决方案
- java上传附件到本地服务器,调用linux命令然后再传输到远程服务器
- Linux下自动备份MySQL数据库并上传到远程FTP服务器且删除指定日期前的备份Shell脚本
- Linux下自动备份MySQL数据库并上传到远程FTP服务器且删除指定日期前的备份Shell脚本