start mysql server from cmd

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
siyaco
Forum Commoner
Posts: 26
Joined: Mon Feb 05, 2007 1:36 am
Location: Kurdistan Mountains

start mysql server from cmd

Post by siyaco »

hi
i am studying mysql. i have installed wamp. the mysql server can be started by wamp tray. but i want to do it from cmd.
in c:\wamp\mysql\bin
which command must i use?
i use mysql start, or mysqld start but it doesn't work.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

try

Code: Select all

net start mysql
siyaco
Forum Commoner
Posts: 26
Joined: Mon Feb 05, 2007 1:36 am
Location: Kurdistan Mountains

Post by siyaco »

volka wrote:try

Code: Select all

net start mysql
thanks
i tried it in c:\wamp\mysq\bin
but it doesn't work and says;The service name is invalid.
then i tried for mysqld, mysqli but it gives same results;
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

If wamp means http://www.wampserver.com/en/ try

Code: Select all

net start wampmysqld
They install mysql under a differnt name.
You do not need to run this command "within" the mysql directory, even start->run->net start wampmysqld should work
siyaco
Forum Commoner
Posts: 26
Joined: Mon Feb 05, 2007 1:36 am
Location: Kurdistan Mountains

Post by siyaco »

thanks, it works like you said :)
Post Reply