How do Double-check the Number of IP Addresses in WHM
The following article explains how to double-check the number of IP addresses in WHM. It’s…
If you’ve forgotten your MySQL root password, resetting it is straightforward. Follow these steps carefully:
Step 1: Stop the MySQL Service
Before making changes, stop the MySQL service to prevent conflicts.
Step 2: Start MySQL in Safe Mode
Start MySQL without loading the privilege tables, allowing unrestricted access.
Windows: Open a terminal and navigate to the MySQL bin directory (e.g., C:\Program Files\MySQL\MySQL Server 8.0\bin) and run:
mysqld –skip-grant-tables
Step 3: Log in Without a Password
Connect to the MySQL server:
mysql -u root
Step 4: Update the Root Password
Run the following commands to reset the password:
mysql database: USE mysql;Update the password (replace new_password with your desired password):
MySQL 5.7 and later: ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘new_password’;
MySQL 5.6 and earlier: SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘new_password’);
Flush privileges: FLUSH PRIVILEGES;
Exit MySQL: EXIT;
Step 5: Restart MySQL Normally
Stop the safe mode instance and restart the service normally.
Step 6: Test the New Password
Verify the new password by logging in:
mysql -u root -p
Enter your new password when prompted.
By following these steps, you can reset your MySQL root password and regain access to your database.
Read Also: How to Customize the version of MySQL database in cPanel
Explore more hosting insights, tips and industry updates.
The following article explains how to double-check the number of IP addresses in WHM. It’s…
The security of a Linux server is always a sensitive issue. Here is what Greg…
Every computer system relies on memory to process and store data. One of the most…