change root mysql password
Posted by: CanadianJeff (---.vc.shawcable.net)
Date: December 03, 2008 12:55PM

just installed wampserver 2 and want to know where to change the root password

Options: ReplyQuote
Re: change root mysql password
Posted by: CanadianJeff (---.vc.shawcable.net)
Date: December 03, 2008 12:57PM

If you have never set a password for root, the server does not require a password at all for connecting as root. To setup root password for first time, use command at shell prompt as follows:

mysqladmin -u root password NEWPASSWORD

However, if you want to change (or update) a root password, then you need to use following command

mysqladmin -u root -p oldpassword newpass

Enter password:




Change MySQL password for other user

To change a normal user password you need to type (let us assume you would like to change password for test):

mysqladmin -u test -p oldpassword newpass

However, if using mysql consol through wamp tray icon, then the command to change password for root is

mysql> SET PASSWORD FOR ‘root’@'localhost’=PASSWORD(’new_password’);

Have fun,

Options: ReplyQuote
Re: change root mysql password
Posted by: yfastud (Moderator)
Date: December 03, 2008 01:15PM

if using command prompt only, you might not able to use phpmyadmin; check my guide here for idea

[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: change root mysql password
Posted by: mindsec (---.1.161.122.airtelbroadband.in)
Date: December 04, 2008 07:49AM

Thanks a lot

now i am facing a new problem:

when i type in command prompt

mysql> \r

it says

Current database: ****none****

PLZ hepl me vth this ..do ineed to create a DB then please tell me the procedure to do this...

Options: ReplyQuote
Re: change root mysql password
Posted by: dster (---.hsd1.pa.comcast.net)
Date: December 04, 2008 11:46PM

I changed my root@localhost password, but now I get the following when I open phpMyAdmin:

Error
MySQL said:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

How do I change the configuration to accept my new password?

Dster

Options: ReplyQuote
Re: change root mysql password
Posted by: dster (---.hsd1.pa.comcast.net)
Date: December 04, 2008 11:58PM

Note: when I access mysql via the MySql console, the new password is accepted and I get a mysql> prompt.

Only phpMy Admin fails.

Dster

Options: ReplyQuote
Re: change root mysql password
Posted by: yfastud (Moderator)
Date: December 05, 2008 12:18AM


Options: ReplyQuote
Re: change root mysql password
Posted by: dster (---.hsd1.pa.comcast.net)
Date: December 05, 2008 12:38AM

Okay, I decided to uninstall WAMP and start over. Unfortunately, after a successful uninstall/reinstall, when I attempt to access phpMyAdmin, I still get the same error:

Error
MySQL said:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)


When I access the mysql console, I get a mysql> prompt without entering a password.

What in the heck has happened to phpMyAdmin, and how do I fix it?

Dster

Options: ReplyQuote
Re: change root mysql password
Posted by: dster (---.hsd1.pa.comcast.net)
Date: December 05, 2008 01:03AM

I fixed the phpMyAdmin problem by deleting my browser's cache. It now works fine.

Dster

Options: ReplyQuote
Re: change root mysql password
Posted by: yfastud (Moderator)
Date: December 05, 2008 04:33AM


Options: ReplyQuote
Re: change root mysql password
Posted by: web2works (---.doncasterbic.co.uk)
Date: August 06, 2012 01:37PM

If after changing the root password you will not be able to access phpmyadmin. To solve this open: /wamp/apps/phpmyadmin3.5.1/config.inc.php

Here you will find: $cfg['Servers'][$i]['password'] = ''; where you can add your new password.




@yfastud - could you get any more advertisements on this guide?

Options: ReplyQuote
Re: change root mysql password
Posted by: web2works (---.doncasterbic.co.uk)
Date: August 06, 2012 01:37PM

If after changing the root password you will not be able to access phpmyadmin. To solve this open: /wamp/apps/phpmyadmin3.5.1/config.inc.php

Here you will find: $cfg['Servers'][$i]['password'] = ''; where you can add your new password.




@yfastud - could you get any more advertisements on this guide?

Options: ReplyQuote
Re: change root mysql password
Posted by: stevenmartin99 (Moderator)
Date: August 06, 2012 02:08PM

do you want him to try?!

shhhh smiling smiley

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.