Results 1 to 4 of 4
Is there ayway to reset the installation of MySql so i can start from scratch. Its running on my CentOS 5 server.
I have no databases and dont use MySQL ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-01-2010 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 11
Forgotton MySQL Root Password
Is there ayway to reset the installation of MySql so i can start from scratch. Its running on my CentOS 5 server.
I have no databases and dont use MySQL for anything at the moment but need to start doing so.
I tried 'yum remove mysql' then 'yum install mysql' but that doesnt seem to reset the passwords etc.
Any help would be appreciated.
Cheers.
- 02-01-2010 #2
Firstly you will need root access to the server
Login or su to root
Stop the MySQL Server
And then from the command link execute mysqld --skip-grant-tables
You can then run mysql from the command line - execute mysql -u root (You won't be asked for a password)
In Mysql run use mysql;
And then UPDATE user SET password = pasword("YOUR_PASSWORD") WHERE user = 'root';
Run exit;
Stop the mysql server and restart it normallyIf we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
The Fifth Continent reborn
- 02-03-2010 #3Just Joined!
- Join Date
- Nov 2009
- Posts
- 11
- 02-03-2010 #4
mysqld may not be in your path. Try /etc/init.d/mysqld --skip-grant-tables
If that doesn't work you can see where mysqld is by running which mysqldIf we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
The Fifth Continent reborn


Reply With Quote

