Lefu Posted February 29, 2008 Share Posted February 29, 2008 dear friends, I am using xp and installed mysql 5, I want to know how do I remove password. I want to log in to mysql db with out entering password on my local machine. thanks a lot Quote Link to comment Share on other sites More sharing options...
PHP Monkeh Posted February 29, 2008 Share Posted February 29, 2008 Update your username to have a blank password field. Log in to mysql using your current username & password in command prompt: mysql -u USERNAME -p PASSWORD Select the mysql database use mysql; Then update the user that you want to have without a username (I'd advise against setting the root user to have no password) UPDATE `user` SET `Password` = '' WHERE `User` = 'YOUR_USERNAME'; Quote Link to comment Share on other sites More sharing options...
Lefu Posted March 2, 2008 Author Share Posted March 2, 2008 Thanx it worked like hot knife on butter. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.