esther Posted July 19, 2007 Share Posted July 19, 2007 Hi friends, I want to take a backup of my Mysql table.Is there a method to do it.If so please help me. Quote Link to comment https://forums.phpfreaks.com/topic/60756-reg-mysql-backup-in-txt-file/ Share on other sites More sharing options...
pnj Posted July 19, 2007 Share Posted July 19, 2007 mysqldump [db_name] >backup.txt will back up your entire database from the command line. if you want to do it with a query, you can use SELECT * INTO OUTFILE "/foo/backup.txt" FROM my_table you can control how the fields are delimited etc.: http://dev.mysql.com/doc/refman/4.1/en/select.html cheers -pnj Quote Link to comment https://forums.phpfreaks.com/topic/60756-reg-mysql-backup-in-txt-file/#findComment-302281 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.