using the command prompt, you might access it using something like the following
C:\xampp\mysql\bin\mysql -u username -h hostname -p
at this point hit return, and you will be prompted for your password. Enter it and hit return and there you go, you're in!
the above assumes you are using Windows and running XAMPP (C:\xampp\mysql\bin\mysql)
Hope this helps,