2004-06-03, 11:09 PM 
(This post was last modified: 2012-01-08, 02:15 PM by Dungeon-Dave.)
		
	
	
		I just set it awhile ago, and now I forgot it. Is there a way to retrieve it back?
	
	
	
	
	
| 
					How to reset mysql root password
				 | 
| 
		
		
		2004-06-03, 11:09 PM 
(This post was last modified: 2012-01-08, 02:15 PM by Dungeon-Dave.)
		
	 
		I just set it awhile ago, and now I forgot it. Is there a way to retrieve it back? 
		
		
		2004-06-04, 06:15 AM 
		
	 try this Code: ./mysqladmin -u root password new-passwordcheers anyweb 
		
		
		2004-07-01, 08:54 AM 
		
	 I had the same problems but was getting some funny error messages with anywebs command so I used this reference : [/url][url=http://dev.mysql.com/doc/mysql/en/Resetting_permissions.html]http://dev.mysql.com/doc/mysql/en/Resetting_permissions.html Its was really good however where it says this: shell> kill `cat /mysql-data-directory/host_name.pid` I did this: kill cat '/urs/local/mydsql/data/linux.domain.com.pid' to get the process id to stop mysql. The rest worked fine and was a great help. 
		
		
		2006-01-13, 08:33 PM 
(This post was last modified: 2012-01-08, 02:08 PM by Dungeon-Dave.)
		
	 Never forgotten a password, then you must be in the minority. All is not lost however there is a way of starting MySQL and then accessing it without a password. Code: # /etc/init.d/mysql stopThats it.. a quick and easy way to recover your mysql database password [img]<___base_url___>/public/style_emoticons/default/happy.gif[/img] 
		
		
		2006-01-13, 08:56 PM 
		
	 pinned thanks znx ! 
		
		
		2006-01-14, 12:31 PM 
		
	 
		Nice one znx :) Some more notes.. If you see this complaint: Code: # mysqld --skip-grant-tables --user=root &Then its most likely still running, you can confirm with: Code: # netstat -tlp | grep mysqlAnd then you can continue to the next step... 
		
		
		2006-08-28, 09:20 PM 
		
	 If you find that you can't execute mysqld .. then it could be that the mysql server is hidden, so you can use: Code: /usr/libexec/mysqld --skip-grant-tables --user=root &Instead :) | 
| 
					« Next Oldest | Next Newest »
				 |