Mysql commands: Difference between revisions

From RAJ INFO
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
* GetInto from Shell
* GetInto from Shell


<source lang=mysql>
<pre>
$ mysql -u $usr -p -h $host $db
$ mysql -u $usr -p -h $host $db
</source>
</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