Or copy link
Copy link
Managing databases is an important aspect of web hosting and maintaining security. One of the most fundamental steps in securing your MySQL databases is ensuring the root password is strong and changed regularly. WHM stands for Web Host Manager provides a user-friendly interface to manage various aspects of your hosting account including MySQL.
In this article, we will explore the process of changing the MySQL root password in WHM to prevent unauthorized access.
WHM is a powerful tool used by web hosting providers to manage host accounts on a server. MySQL is a popular open-source relational database management system. The root user in MySQL has full administrative privileges so it is essential to keep the root password secure.
Before change MySQL root password WHM it is important to take a few preparatory steps:
Setup Website on UltaHost cPanel Hosting!
Is your website bogged down by slow or struggling growing traffic? Experience Ultahost blazing-fast speeds, and reliability, for management of your website.
The steps to reset MySQL root password WHM are discussed below:
Open your preferred web browser. Navigate to your WHM login URL. This is typically https://yourdomain.com:2087 or https://your-server-ip:2087. Enter your WHM root username and password to log in.
https://yourdomain.com:2087
https://your-server-ip:2087
Once logged in, follow these steps to WHM MySQL password change:
In the WHM search bar, type “MySQL” to quickly find the MySQL related options.
Click on the “MySQL Root Password” link under the SQL Services section.
In the “MySQL Root Password” page enter your new desired password. Ensure it is strong by using a mix of uppercase, lowercase, numbers, and special characters.
Re-enter the new password to confirm it. Click the “Change Password” button.
After changing the password, it’s essential to verify that the change was successful:
Use the command line or a MySQL client like phpMyAdmin to log in with the new root password.
Run a few queries to ensure the databases are accessible and functioning correctly.
After changing the MySQL root password, you need to update any applications or scripts that use the root password to connect to the database:
Locate the configuration files of your applications, common files include config.php, .env, or similar. Replace the old root password with the new one in these files. Restart any web services or applications to apply the changes.
config.php
.env
Learn about How to Install WHM/cPanel on CentOS 7.
Changing the MySQL root password is an excellent step toward securing your databases. Here are a few additional tips:
Changing your MySQL root password in WHM is a straightforward process that significantly enhances your database security. By following the steps outlined in this guide, you can ensure your MySQL databases remain secure and your hosting environment remains robust. Regularly updating your passwords and adhering to security best practices will help protect your data from unauthorized access.
Setting up multiple cPanel accounts can be a time-consuming task for busy website business owners. For those offering individual cPanel accounts to their clients consider Ultahost’s reseller hosting which provides you root access and WHM control panel access allowing you to easily manage your client’s cPanel accounts.
The MySQL root password is the main password to access and manage your MySQL database.
Changing the password improves security and protects your database from unauthorized access.
Yes, WHM has a feature to easily reset or change the MySQL root password.
Log in to WHM, search for “MySQL Root Password,” and select it under SQL Services.
You can reset it in WHM using the “MySQL Root Password” option.
No, WHM automatically applies the changes without needing a MySQL restart.
Yes, but ensure you update any applications or scripts using the old password.
Authentication plays a pivotal role in upholding securi...
phpMyAdmin a free and open-source web application serve...
SSH stands for Secure Shell is a powerful network proto...
XAMPP is a software package that allows users to set up...
Handling files on a website can pose a considerable cha...
Deleting a MySQL database and user from cPanel is impor...
Save my name, email, and website in this browser for the next time I comment.
Δ