my steps to “sync” are more like ultra-fast backups
1.- Windows converts your database with this
http://www.bullzip.com/products/a2m/info.php
it quickly converts most of the database to YOURDATABASE.sql
2.- on linux (I use Ubuntu)
since you should do this, I often recommend a script for corrections.
my example:
#!/bin/bash #edita tablas szAnswer=$(zenity --title="YOURDATABASE" --entry --text "some text" --entry-text ""); fromdos $szAnswer; sed -i 's/DATETIME\ DEFAULT\ .*/DATE,/g' $szAnswer; sed -i 's/DATETIME/DATE/g' $szAnswer; sed -i 's/FLOAT/DECIMAL(10,2)/g' $szAnswer; sed -i 's/(NULL,/(\ ,/g' $szAnswer; sed -i 's/ NULL);/\ );/g' $szAnswer; sed -i 's/,\ NULL,/,\ ,/g' $szAnswer
The zenity program is installed by default in ubuntu, you need "fromdos" to return the carriage in windows
then: 3.-mysql -u theuser -pthepass
mysql> source YOURDATABASE.sql
and you are done in 5 minutes.
source share