run xamp server sql on command line code example Example: how to connect to xampp sql server on windows cmd cd c:\xampp\mysql\bin mysql.exe -u root --password