from http://ja.meswilson.com/blog/2007/04/07/access-mysql-command-line-in-xampp/
ACCESS MYSQL COMMAND LINE IN XAMPP
Posted on April 7, 2007, 10:36 am, by James Wilson, under XAMPP.…
First Method:
Start the command prompt, and cd to the xampp directory. It’ll usually be something like:
cd ../../Program Files/xampp
if you used the installer and default install location.Once in there, cd to the mysql bin directory.
cd mysql/binNow, run the command:
mysql.exe –user=root –password=
And the MySQL command line will start. If you’ve changed the username or password of the MySQL user, you need to change the –user= and –password= accordingly.Second method:
Basically the same way as before, but we’ll create a batch file to make it easier.
First, create a file called mysql_command.bat in the XAMPP directory.
Edit this file with Notepad or any text editor, and paste in this:
@echo off
echo Starting MySQL command line…
mysqlbinmysql.exe –user=root –password=
pause
Save it, and change the –user= and –password= if you’ve changed the user or password.
Now, run mysql_command.bat and a command prompt will show up with the MySQL command line running.