dip 133 Questions 69 Answers 0 Best Answers 45 Points View Profile 0 dip Begginer Asked: December 12, 2018 How to importing database via Command Line (SSH)? 0 Want to importing database via SSH in Cpanel Share Facebook 0 Answers Voted Oldest Recent Random B Mathur 33 Questions 198 Answers 3 Best Answers 15 Points View Profile B Mathur Begginer Added an answer on December 13, 2018 at 3:08 pm Using a command you can import a MySQL database into an existing database. Please follow the below steps: Upload the SQL file to the server via the file manager or an FTP client like FileZilla. If the database does not exist, please create a database, a user, and give the user full privileges to the database. keep the username and password save in a text file. Log into the server through SSH Navigate to the directory where your .sql file is. Type in this command:mysql -p -u user_name database_name <filename.sql (replace ‘user_name’, ‘database_name’, and ‘filename.sql’ with the actual name.) You will be prompted for your database user password, and then enter user password and your database will be imported. 0 Reply Share Share Share on Facebook Share on Twitter Share on LinkedIn Share on WhatsApp Leave an answerCancel replyYou must login or register to add a new answer.