> For the complete documentation index, see [llms.txt](https://learnsql.gitbook.io/lernmysql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learnsql.gitbook.io/lernmysql/how-can-i-access-the-mysql-command-line-with-xampp-for-windows-ok.md).

# How can I access the MySQL command line with XAMPP for Windows? (ok)

[Ask Question](https://stackoverflow.com/questions/ask)Asked 11 years, 4 months agoActive [8 months ago](https://stackoverflow.com/questions/698914/how-can-i-access-the-mysql-command-line-with-xampp-for-windows?lastactivity)Viewed 409k times13151

How can I access the MySQL command line with XAMPP for Windows?[mysql](https://stackoverflow.com/questions/tagged/mysql) [windows](https://stackoverflow.com/questions/tagged/windows) [xampp](https://stackoverflow.com/questions/tagged/xampp) [mysqldump](https://stackoverflow.com/questions/tagged/mysqldump)[share](https://stackoverflow.com/q/698914)  [improve this question](https://stackoverflow.com/posts/698914/edit)  follow [edited Mar 30 '09 at 21:44](https://stackoverflow.com/posts/698914/revisions)asked Mar 30 '09 at 20:39[![](https://www.gravatar.com/avatar/b9c927e051202fc198e70659d9827d2f?s=32\&d=identicon\&r=PG)](https://stackoverflow.com/users/4376/nathan-long)[Nathan Long](https://stackoverflow.com/users/4376/nathan-long)109k8989 gold badges305305 silver badges405405 bronze badges[add a comment](https://stackoverflow.com/questions/698914/how-can-i-access-the-mysql-command-line-with-xampp-for-windows#)

### 15 Answers

[Active](https://stackoverflow.com/questions/698914/how-can-i-access-the-mysql-command-line-with-xampp-for-windows?answertab=active#tab-top)[Oldest](https://stackoverflow.com/questions/698914/how-can-i-access-the-mysql-command-line-with-xampp-for-windows?answertab=oldest#tab-top)[Votes](https://stackoverflow.com/questions/698914/how-can-i-access-the-mysql-command-line-with-xampp-for-windows?answertab=votes#tab-top)188

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 use mysqldump.exe, you should also find it there.

Log into your mysql server, and start typing your commands.

Hope it helps...
