tags:

views:

45

answers:

4

Is there any nice command line MySQL client for windows? I mean a single exe that allows connecting and running a sample query. I've googled and only could find big graphical environments like toad or mysql workbench. I need only a simple command line tool, where can I download sth like this?

EDIT: I don't want to install the whole MySQL package on my PC. I know it's inside the mysql package but how do I download only this cmd line client. Because i don't need anything else.

+1  A: 

mysql.exe is included in mysql package. You don't have to install anything additionally.

Naktibalda
I don't want to instal the whole mysql database, I only need a client!
PawelRoman
+1  A: 

It looks like one should come with your MySQL install according to the MySQL webpage. Is this not what you're looking for?

allie
Yes, but how can I download the client only? I don't want the whole database engine on my PC, i only need a command line client to connect to database on the other box.
PawelRoman
Ah. In that case, I would recommend downloading the [zip](http://dev.mysql.com/downloads/mysql/), getting the client, and then dumping the rest. :)
allie
+2  A: 

You can access mySQL in command line just by typing:
C:\www\mysql\bin> mysql -u root -p

After which you can type sql commands normally such as:
mysql> SHOW DATABASES;
Here, I am assuming you mySQL installation directory is "C:\www\mysql"

Hypnos
+2  A: 

mysql.exe can do just that....

To connect,

mysql -u root -p (press enter)

It should prompt you to enter root password (u = username, p = password)

Then you can use SQL database commands to do pretty much anything....

The Elite Gentleman