Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I just installed MySQL community server on Windows 7, completed the configuration wizard making sure the command line is included but I just can't use it from cmd.

Entering mysql or MySql just returns an error that there is no such command.

Does anyone have any advice? Thank you.

share|improve this question

closed as off topic by John Gardeniers, Ward, Brent Pabst, mdpc, Scott Pack Dec 21 '12 at 20:07

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 1 down vote accepted

You will need to add the path to MySQL to your Windows PATH. You will probably need to exit CMD and start it again so the change takes effect.

Or, if you don't want to exit CMD, you can enter the following command at the prompt:

set PATH=%PATH%;c:\path\to\mysql

substituting the correct directory structure. That command will only affect the current session until it's exited.

share|improve this answer
    
just did that and it did not help :( –  Alex Jan 23 '11 at 1:35
    
ok, set PATH=%PATH%;c:\path\to\mysql did not work but ADDING PATH FROM MY COMPUTER SETTINGS helped. So now it works!!! Perfect –  Alex Jan 23 '11 at 1:43
    
@Alex: Does it work if you use the full path to start it at the command line? Something like c:\prompt> C:\path\to\mysql (enter the part after the prompt). –  Dennis Williamson Jan 23 '11 at 1:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.