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 Link to comment https://forums.phpfreaks.com/topic/93644-remove-password/ 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'; Link to comment https://forums.phpfreaks.com/topic/93644-remove-password/#findComment-479813 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. Link to comment https://forums.phpfreaks.com/topic/93644-remove-password/#findComment-481507 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.