mysql -u DB_USERNAME -p DBNAME < YOURDB_FILE.SQL
wp db import filename.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!