1. Create backup
$ mysqldump -u root -proot regdb > /home/yumani/Documents/regdb_back.sql
2. Restore
Create a database in mysql and the grant user access
mysql > create database regdb;
mysql > grant all on regdb.* to wso2bam@'%' identified by 'wso2bam';
$ mysql -u root -proot regdb < /home/yumani/Documents/regdb_back.sql
A place where I keep a note of simple but useful technical tips and memorable posts....
Monday, November 1, 2010
Subscribe to:
Comments (Atom)
-
Got to know this is how command line looping is used: while [ 1 ] do ls -al ; sleep 60 done Applying this to stress command...
-
Here are steps: Open the file you need to edit :sp /path/to/the/file/... and open the file that you need to copy from (this will split...