[How to] set password for MySQL 5.5.16
Posted: Thu Nov 03, 2011 4:08 pm
I had to use google to figure this out and found the answer here:
http://www.sitepoint.com/forums/showthr ... ssword-NO)
I'll sum up what to do.
1 - open mysql console
2 - assuming you haven't set a password, just press enter on the keyboard
Next, press enter after typing each step. note commands are case sensetive. Also add the semi-colon on step 6 and 7
3 - type use mysql
4 - type UPDATE mysql.user
*5 - type SET Password=PASSWORD("YOUR_PASSWORD_HERE")
6 - type WHERE User="root";
*make sure to change YOUR_PASSWORD_HERE to your actual password
7 - type FLUSH PRIVILEGES;
8 - type exit
Now on to the next part!
9 - go to C:\wamp\apps\phpmyadmin3.4.5 , or where you installed WAMP and OPEN config.inc.php
10 - on line 16, add your password to:
$cfg['Servers'][$i]['password'] = 'YOUR_PASSWORD_HERE';
11 - save and close config.inc.php
Now go to localhost/phpmyadmin. The default name is 'root' and you should kow your password
Enjoy!
http://www.sitepoint.com/forums/showthr ... ssword-NO)
I'll sum up what to do.
1 - open mysql console
2 - assuming you haven't set a password, just press enter on the keyboard
Next, press enter after typing each step. note commands are case sensetive. Also add the semi-colon on step 6 and 7
3 - type use mysql
4 - type UPDATE mysql.user
*5 - type SET Password=PASSWORD("YOUR_PASSWORD_HERE")
6 - type WHERE User="root";
*make sure to change YOUR_PASSWORD_HERE to your actual password
7 - type FLUSH PRIVILEGES;
8 - type exit
Now on to the next part!
9 - go to C:\wamp\apps\phpmyadmin3.4.5 , or where you installed WAMP and OPEN config.inc.php
10 - on line 16, add your password to:
$cfg['Servers'][$i]['password'] = 'YOUR_PASSWORD_HERE';
11 - save and close config.inc.php
Now go to localhost/phpmyadmin. The default name is 'root' and you should kow your password
Enjoy!