Excuting sql files from Linux shell


/ Published in: MySQL
Save to your folder(s)

Ftp your *.sql file to the (remote) machine, login via SSH and then go to the directory where your sql file is and run this code.


Copy this code and paste it in your HTML
  1. mysql <my_db_name> -u<user_name> -p<password> <mysql.sql

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.