How to import a database with SSH

Posted on: August 3rd, 2022
By: Tadeo Martinez

mysql -u DB_USERNAME -p DBNAME < YOURDB_FILE.SQL

Once you’ve entered this command, you will be prompted for a password. You need to enter the database password (not the SFTP one).

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published. Required fields are marked *