linux - Restore mysql database from a remote dump file -


is possible restore dump file remote server?

mysql -u root -p < dump.sql 

can dump.sql located in remote server? if how refer in command above. copying server isn't option there no enough space in server. i'm on redhat 5

  1. implement ssh remote access remote server local
  2. run on remote server cat dump.sql | ssh -c 'mysql -u root -ppassword '

or

  1. implement mysql access remote server
  2. setup privileges root@(remoteserver)
  3. run on remote server mysql -h mysql.yourcompany.com -u root -p < dump.sql

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -