Opening PHPMyAdmin (PHPMA) for both your live websites and staging sites is usually very quick and easy – you simply click on the little database icon next to your site, and PHPMA will open up in a new window and instantly log you in.
If you’re experiencing a “Bad Userdata” error when you open up PHPMA, this means that your database credentials do match up with the credentials that are stored in the vCanopy Panel.
Fortunately, this kind of issue is extremely rare and also very easy to fix.
STEP 1. FIRST CONNECT TO YOUR SERVER VIA SSH
If this is your first time, please see the following articles to get started:
Step 1. Generate your SSH Key
STEP 2. RUN OUR GP-CLI TO FIX THE MISMATCH
Now on the command line, simply copy and paste the following command, switching out site.url for your actual website URL:
gp site site.url -dbcreds
gp site example.com -dbcreds
The above command will update the credentials stored in vCanopy Panel to match the ones in the server, and you will now be able to access your PHPMA again.