2 Steps to Post a New Problem
DISCLAIMER: The content on the site has been submitted by the users. NibbleGuru.com has no responsibility other than in removing material from the website when we have been notified of a copyright violation. Notify
here.
Instructions to import a MySQL database using SSH
Instructions to import a MySQL database using SSH
mysql -uUSERNAME –pPASSWORD DATABASENAME < /PATH/TO/DATABASEBACKUPFILE.sqlFor example, if my username was "nibbleguru", my password "example", my database name "testdb" and the absolute path to my file "/home/nibbleguru/my_db_backup.sql", I would type:
mysql –unibbleguru –pexample testdb < /home/nibbleguru/my_db_backup.sql