MYSQL - Nothing happen while trying to import DB from mysqldump file -
im developing website, locally on ubuntu 14.04 lts , standard lamp installation. finished "tests" phase locally, move db on vps start doing tests on web. hence, i've dumped db with
mysqldump -u root -p --opt example > emample.sql then i've
scp example.sql user@host:mysqldump/ and then, on vps:
mysql -u root -p example > example.sql well, after password prompt i've pressed enter, nothing happened. cursor blinks 2 hours ago, db size 20kb !!!!!
any idea of happening?
thanks
your problem line:
mysql -u root -p example > example.sql it has be
mysql -u root -p example < example.sql (note <).
> redirecting output of command file example.sql, < setting example.sql input (redirect file content stdin).
before try that, copy file again server command have tried may have overwritten content (> deletes file content , begins new file output of command, >> have appended it)
Comments
Post a Comment