Posts: 17
View Profile Email Personal Message (Online)
mysql restore not working with tables that have special characters (," ')
« on: Today at 01:41:12 PM »
Reply with quoteQuote
In my database that I need to backup and restore, I have a lot of tables that have special characters such as parenthesis, double and single quotes, and commas. Here is an example of one that causes problems with restore:
2,,3,3',4,4',5,7-heptahydroxyflavanbioside
It seems like backing up using the standard command:
c:> mysqldump -u root -ppassword -databases mydb > mydb.sql
Works, because I can read through the sql file and its all there.
Problem is when i try to restore with the command:
C:> mysql -u root -ppassword mydb_to_restore_to < mydb.sql
It seems to process fine and returns to the command prompt with no errors. However, after checking the database, nothing has been restored. The whole process works fine with databases that don't have funky characters.
help?