Link to home
Start Free TrialLog in
Avatar of Mulith
Mulith

asked on

Moving databse via SSH, collation issues?

Hi All,

I'm moving a Latin1 database to a new server but when used mysqldump via SSH there are a few problems with special characters like the "£" sign, quotes, dashes and double quotes.

Is there a way I could do do the MySQL dump while converting special characters to html entities or is there a way to make the changes before exporting the database via SSH?

Thank you
Avatar of G23PlusLinuxEqualsNetworkSecurity
G23PlusLinuxEqualsNetworkSecurity

How are you executing the mysqldump command, i.e. what arguments are you using?  you can use the --xml flag to output things in XML or you may want to pipe your output into a file (mysqldump [arguments] > $filename
Avatar of Mulith

ASKER

This is the statement structure I'm using:
 mysqldump -u username -p database_name > dumpfile.sql

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Mulith
Mulith

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mulith

ASKER

Solved it myself but can't remember how.