{"id":61109,"date":"2021-05-13T13:00:00","date_gmt":"2021-05-13T18:00:00","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=61109"},"modified":"2021-05-13T13:00:00","modified_gmt":"2021-05-13T18:00:00","slug":"how-to-reset-the-mysql-root-password-and-mysql-user-passwords","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-reset-the-mysql-root-password-and-mysql-user-passwords\/","title":{"rendered":"How To Reset the MySQL\u00ae Root Password And MySQL User Passwords"},"content":{"rendered":"\n
MySQL is the primary database software for sites hosted on cPanel-managed servers, including WordPress\u00ae<\/sup> and ecommerce applications such as Magento. Because MySQL has to manage read and write permissions for many different sites and databases, it is a multi-user system. <\/p>\n\n\n\n Each user account has a set of permissions that limit its access. The MySQL root user has no limits; as the database server\u2019s administrator, the root user can create and delete accounts and modify any other account or database. <\/p>\n\n\n\n If the MySQL root user\u2019s password is exposed to third parties or non-admin server users, it should be changed. A bad actor who gets hold of the password may abuse it to disrupt sites and access sensitive information. <\/p>\n\n\n\n In this article, we explain how to change the MySQL root password with cPanel & WHM. We\u2019ll also explore changing other MySQL user account passwords and show you a shortcut for quickly changing WordPress database passwords in WP Toolkit<\/em>. <\/p>\n\n\n\n Before we get to changing passwords, let\u2019s clear up a common misunderstanding: The MySQL root user is not the server\u2019s root user. Your server\u2019s Linux operating system has multiple users and a root account, and so does the MySQL database software. But Linux and MySQL users are unconnected; different systems manage them.<\/p>\n\n\n\n This article focuses on the MySQL root account. If you want to change your cPanel server\u2019s root account password, read the Change Root Password<\/a> documentation instead. <\/p>\n\n\n\n To change the MySQL root password, open WHM and navigate to MySQL Root Password <\/em>under SQL Services <\/em>in the sidebar menu. <\/p>\n\n\n\nReset the MySQL Root Password with cPanel & WHM<\/strong><\/h2>\n\n\n\n