By Binu Johnson
i have created a managed mysql database, i have a hosting account and upload the phpmyadmin and set the config.inc.php as follows
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'db-mysql-blr1-63272-do-user-4986520-0.b.db.ondigitalocean.com';
$cfg['Servers'][$i]['port'] = '25060';
$cfg['Servers'][$i]['ssl'] = true;
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
Then i opened the phpmyadmin and i give the username and password for the defaultdb, but i got the following error.
Cannot log in to the MySQL server mysqli::real_connect(): (HY000/2002): Connection refused
i tried with all ways but i cant login to view my database. my hosting is running on php 7.4, even i tried with php 8.0 but getting the same error. Anybody help please.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
There are a couple of things that I could suggest:
https://www.digitalocean.com/community/questions/how-to-install-manually-phpmyadmin-on-ubuntu
https://docs.digitalocean.com/products/databases/mysql/how-to/secure/
Let me know how it goes!
Best,
Bobby
Hi @binujohn,
Our below community article can guide you in setting up and connecting to MySQL Managed database via phpMyAdmin with SSL.
I hope this helps!
Regards, Rajkishore
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.