How can I access the MySQL command line with XAMPP for Windows?

Your MySQL binaries should be somewhere under your XAMPP folder. Look for a /bin folder, and you’ll find the mysql.exe client around. Let’s assume it is in c:\xampp\mysql\bin, then you should fireup a command prompt in this folder. That means, fire up “cmd”, and type: cd c:\xampp\mysql\bin mysql.exe -u root –password If you want to … Read more

how to mysqldump remote db from local machine

As I haven’t seen it at serverfault yet, and the answer is quite simple: Change: ssh -f -L3310:remote.server:3306 user@remote.server -N To: ssh -f -L3310:localhost:3306 user@remote.server -N And change: mysqldump -P 3310 -h localhost -u mysql_user -p database_name table_name To: mysqldump -P 3310 -h 127.0.0.1 -u mysql_user -p database_name table_name (do not use localhost, it’s one … Read more