I have a PHP application written with codeigniter that connects to MySQL just fine for two months. Yesterday, it couldn’t connect to it, showing an error message that there was an error in the configuration or something! I did not change any settings at that time… I tried to log in with phpmyadmin it told me this message “Connection for controluser as defined in your configuration failed”. So, now I know that neither me nor the application can connect to the MySQL server. Restarted the droplet and everything got back to normal! Today, it did the same thing again -_-, just made a reboot and its fine again…
My question is: What is the real problem so I can prevent this from happening again?
PS: I kinda noticed a new database now within MySQL i am not sure if it was “mysql” or “phpmyadmin” but i am sure they both were not in there… I use the root username. Droplet runs Ubuntu.
Thanks in advance…
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!