i have a mysql database in mysyatem, i want to take backup and transfer it to another database, how it can be done.
i have a mysql database in mysyatem, i want to take backup and transfer it to another database, how it can be done.
you can use mysqldump:
will login as USER (and prompt for password) and dump the contents of DATABASE to file.sqlCode:mysqldump -u USER -p DATABASE > file.sql
Then on the new server, run:
Make sure the charsets match, I've had troubles with this when going from different versions of mysql.Code:mysql -u USER -p DATABASE < file.sql
63,000 bugs in the code, 63,000 bugs,
ya get 1 whacked with a service pack,
now there's 63,005 bugs in the code!!
It works, Thanks..
Bookmarks