Skip to content Skip to site navigation

How to Change MySQL Password

Follow these steps to change your MySQL password via the phpMyAdmin (Cloud Infrastructure):

  1. To change your cloud MySQL password, sign in to the new phpMyAdmin using your username and default password that was provided to you.
  2. Click the “SQL” tab, which will show you a screen where you can type commands.
  3. Type the following command:
    • alter user <your_username> identified by ‘<your_new_password>’;
  4. Replace <your_username> with your username (should be your SunetID).
  5. Replace ‘<your_new_password>’ with the password of your choice. The single quotes are needed. 
    Example: 
    • alter user johndoe identified by ‘mypassword1234’
  6. Once you are done typing the command, click “GO” at the bottom of the page. 
  7. Exit and log in again with your new password.
Last modified March 4, 2024