C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » SQL Server »

How to set password for mysql


Posted Date: 04 Jul 2009      Posted By: amitkumar      Member Level: Gold     Points: 1   Responses: 7



Hi,

I want to set password for my mysql login, its askin password while login first time, but default there s no password to enter in to command prompt. Am using wamp server..
Pls tell me the command to set the password.

Thanks in Advance
Dilip





Responses

Author: Mohsin    04 Jul 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Use this link:


http://www.cyberciti.biz/faq/mysql-change-root-password/



Author: amitkumar    04 Jul 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

I checked the same, Its not working


Author: Deepika Haridas    04 Jul 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,

1) Login to mysql server, type following command at shell prompt:

$ mysql -u root -p

2) Use mysql database (type command at mysql> prompt):

mysql> use mysql;

3) Change password for user deepika:

mysql> update user set password=PASSWORD("NEWPASSWORD") where User='deepika';

4) Reload privileges:

mysql> flush privileges;
mysql> quit


Hope this helps..



Thanks & Regards,
Deepika
Editor

If U want to shine like a SUN..First U have to burn like the SUN!!
Need a Guide? Join my mentor program..



Author: Deepika Haridas    04 Jul 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,

Also another way to do is

GRANT USAGE ON *.* TO user@host IDENTIFIED BY 'password';




Thanks & Regards,
Deepika
Editor

If U want to shine like a SUN..First U have to burn like the SUN!!
Need a Guide? Join my mentor program..



Author: amitkumar    04 Jul 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

still its not happening..


Author: Deepika Haridas    04 Jul 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,

Are you getting any error while performing the steps?

If so, then paste the error here...



Thanks & Regards,
Deepika
Editor

If U want to shine like a SUN..First U have to burn like the SUN!!
Need a Guide? Join my mentor program..



Author: Devendra    06 Jul 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Try to deepika suggestion i think she is right


Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Concatenate two different datatype variable.
Previous : Date between
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use