Flux rss

Reinitializing the root password of MySQL

Published by jak58, last update on Thursday October 9, 2008 12:08:45 PM by jak58

Reinitializing the root password of MySQL





It’s important that you are able to access and modify the admin (root) password of MYSQL, either when installing MySQL for the first time or in situations where the master password is lost.

The root password is lost!


To be able to modify the existing root password, you must firstly be connected to it. If you know the root password and just want to reinitialize it, you can skip this part. In the case that you don’t have the root password then follow the steps below.
It s is possible to bypass the authentication process and to access MySQL:

Stop the MySQL server.

#/etc/init.d/mysql stop


Restart MySQL, disabling network communication and skipping the authentication procedure.

#mysqld --skip-grant-tables --skip-networking &

Reinitializing the password:


Get connected to the system database (mysql) of MySQL:

# mysql mysql -u root


Type in the following command and reset your password

UPDATE user SET password=PASSWORD('newpassword') WHERE user="root";


If you didn’t go through the first step, to validate the changes simply type:

FLUSH PRIVILEGES;


If you started MySQL manually(bypassing the authentication process), the server must be restarted:

#/etc/init.d/mysql restart
Root password I have problem about installing printer driver. My operating system is Linpus Linux. My printer is HP deskjet 3940. When I tried to install hplip, my system asked a root password.. But I didn't remember that I had made the password.. Can you help... en.kioskea.net/forum/affich-28502-root-password
PhpMyAdmin - Access denied for user root’@localhost PhpMyAdmin - Access denied for user root’@localhost To reset the rights of the root user Insert the host and password Beginners may face the problem of accessing MySql by the root user. This issue happens when the root requires you to... en.kioskea.net/faq/sujet-673-phpmyadmin-access-denied-for-user-roota-localhost
Viruses - Trojan horses A Trojan horse is a computer program which carries out malicious operations without the user's knowledge. The name "Trojan horse" comes from a legend told in the Iliad (by the writer Homer) about the siege of the city of Troy by the Greeks. Legend... en.kioskea.net/virus/trojan.php3
How to Password Protect your Files and FoldersHow to Password Protect your Files and Folders How to password protect a Word document Password protection on Windows 3.x, Windows 95 and Windows 98 Password protection on Windows XP Password protection on Windows XP Home Edition Password... en.kioskea.net/faq/sujet-270-how-to-password-protect-your-files-and-folders
How to change or recover your Windows Live Messenger passwordHow to change or recover your Windows Live Messenger password 1.Changing your password (Windows Live Messenger) 2. Password Recovery Secret question Send password reset instructions to your alternative email address Download MSN Messenger... en.kioskea.net/faq/sujet-155-how-to-change-or-recover-your-windows-live-messenger-password
MySQL real time monitoringMySQL real time monitoring You are administrating a MySQL database and you want to analyze in real time the operations taking place in order to have a diagnostics over probable problems, errors or to monitor server activity. PhpMyAdmin... en.kioskea.net/faq/sujet-561-mysql-real-time-monitoring
Change root user nameHi all My question is: Is there a way to change the user account name as a way for more security. (i.e, I am a root on RedHat system and want to change my username to another name say ) Is that possible. Waiting for a response! en.kioskea.net/forum/affich-13285-change-root-user-name
MSN password LOST (Solved)Hey ya all.. i have a lil problem about my messenger.. I changed my password recently but i forgot it.. Im trying to get it back but unfortunately i also forgot my secret question's answer :( what should i do to get it back plz Thanking ya all... en.kioskea.net/forum/affich-2721-msn-password-lost
Excel Macro; Adding Password (Solved)Hello, Hope you anyone can help me with this... I need to create a macro that unlocks a password-protected sheet with password "password", do some instruction, then locks it again with same password. Thanks in advance for any assistance. zero en.kioskea.net/forum/affich-17268-excel-macro-adding-password
Download Password CrackerEach time you must create a count on Websites, he asks you for an identifying or "Login" and for a password. Then when you have a good time giving different names and different passwords for every count, it is rather easy to forget it. Password... en.kioskea.net/telecharger/telecharger-567-password-cracker
Download Password HasherThe different customers online mails and other customers of freight forwarding or others, request the use of login and of password. Then not to make the similar, you choose words of the different login as every count with the same password. Password... en.kioskea.net/telecharger/telecharger-754-password-hasher
Attacks - Password protection When connecting to a computer system, you usually have to enter a log in or username and a password to access it. This login/password pair thus forms the key for obtaining access to the system. While the login is in general automatically attributed... en.kioskea.net/attaques/passwd.php3