Question

Can't connect to MySQL! "Connection for controluser as defined in your configuration failed."

  • Posted on February 20, 2014
  • badr.dAsked by badr.d

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…

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

I am facing the same issue. After every few days, i see this error and i have to restart the droplet which resolves the issue. Need to know the root cause behind this. Please help me.

ihi, i have same problem. please help me