Mysql commands: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
* GetInto from Shell | * GetInto from Shell | ||
< | <pre> | ||
$ mysql -u $usr -p -h $host $db | $ mysql -u $usr -p -h $host $db | ||
</ | </pre> | ||
Revision as of 06:01, 2 January 2010
- GetInto from Shell
$ mysql -u $usr -p -h $host $db
- GetDump
$ mysqldump -u $usr -p -h $host $db >$outfile
- RestoreDump
$ mysql -u $usr -p -h $host $db <$outfile