如何将本地导出导入到远程mysql服务器?

如何将本地导出导入到远程mysql服务器?,mysql,Mysql,我有一个本地mysql转储,我想将其复制到远程数据库: mysqlimport --host=192.168.xxx.xxx --user=username --password=password remote_table /tmp/export.txt 结果: mysqlimport:Error:1290,MySQL服务器正在使用--secure file priv选项运行,因此无法执行此语句 那么,我如何告诉我的远程mysql服务器接受来自远程机器的导入呢 mysqldump-u user

我有一个本地mysql转储,我想将其复制到远程数据库:

mysqlimport --host=192.168.xxx.xxx --user=username --password=password remote_table /tmp/export.txt
结果:
mysqlimport:Error:1290,MySQL服务器正在使用--secure file priv选项运行,因此无法执行此语句

那么,我如何告诉我的远程mysql服务器接受来自远程机器的导入呢

mysqldump-u user-p db name>db name.out

ii)使用sftp/ssh将db-name.out文件复制到远程MySQL服务器:

scp db-name.outuser@remote.box.com:/remoteBoxDirectory

iii)在远程服务器上恢复数据库(通过ssh登录):

mysql-u user-p db name
mysql-u user-p'password'db name

数据库所在的服务器上是否已经有了
export.txt
?应该像这里解释的那样简单:不,
export.txt
在我的本地机器上,我想将这个文件“管道”到远程服务器。