I am trying to set MySQL server on my Windows 7 64 bit machine. I have downloaded MySQL server and MySQLWorkbench.
I have started mysql service by command
C:\> net start mysql
as suggested here and checked that mysqld.exe
process is running. Now when I do New Server Instance
in Workbench, it is asking for the password. I never entered or set the password
My Question
Why New Server Instance
in Workbench is asking for the password?
Best Answer
You will need to give root@localhost a password
Since you just installed mysql, you are running with default settings, this means you have no my.cnf. You will have to create one.
Run the following at a DIS Prompt
There, you will see sample
.ini
files. Let's pick my-small.iniOnce you open notepad, add this under the [mysqld] header
Close notepad and Save my.ini
Next, run these lines
You will get a mysql prompt. Now run this:
Back at the DOS Prompt, do this:
Once Notepad is open, delete the line
skip-grant-tables
from my.iniClose notepad and Save my.ini
Once mysql is back up, test the password at the DOS prompt
If you get the mysql prompt, CONGRATULATIONS !!! You installed a password for root@localhost
Go back to MySQL Workbench and user
mysecretpassword
as the passwordGive it a Try !!!