I was figuring out how to import and export mysql databases without using an intermediary file .
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Came ascross this:
mysqldump -hremote_server.com -uuser -psome_pawd database_name | mysql -hlocalhost -uuser - psome_pawd database_name
here, the remote database dump is an input to the localhost
which can be remote server too.
So, server to server import and export happen here without using an intermediary file.
Note: If you wanna backup, u need to have an intermediary file