Move mysql database tables to another database.
Back up your mysql database using SSH (to dumb a database)
use this command:
mysqldump -u username -p dbname >filename.sql
then the console will ask for password and enter the db password.
The sql file will generate and save into the current folder.
please check your folder whether the sql file generated or not using 'ls' command
load mysql to a database from a sql file
use this command:
mysql -u username -p dbname < filename.sql
then the console will ask for password and enter the db password.
the sql instructions from the sql file will loaded and generated in the database.
please check the database whether the sql is loaded or not.
enjoy mysql querying.........
[Wednesday, April 01, 2009
|
0
comments
]
Popular Posts
- Elgg : The most popular open source social networking platform
- function to check whether the year given is a leap year or not
- some php questions
- Running a perl script from PHP
- Jquery based dynamic adding and removal of html elements.
- php Questions
- php questions
- Mysql query for searching a value, add weightage on the number of occurances and sort based on the weight-age
- How to select a specified number of values starting with each alphabets in mysql.
- Help with codeignitor
0 comments
Post a Comment
Please put your comments here. your questions, your suggestions, also what went wrong with me.