Question
Error establishing a database connection
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.
×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.
×start: Rejected send message, 1 matched rules; type="method_call", sender=":1.106" (uid=1000 pid=32707 comm="start mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
mysql -u root -p CREATE DATABASE your_database_name; CREATE USER database_user@localhost; SET PASSWORD FOR database_user@localhost= PASSWORD("database_password"); GRANT ALL PRIVILEGES ON your_database_name.* TO database_user@localhost IDENTIFIED BY 'database_password'; FLUSH PRIVILEGES; exitdo all off it step by step..You should get "Query OK, 0 rows affected (0.00 sec)" message each time. what i did wrong was, i forgot to enter my database name in grant permission command. hope it will help you.
I had the same problem happen again today — now its not starting as quickly as before.
What can I do to my droplet to make sure I never run out of memory?
Hi zack481272 - Did you ever find a solution to this issue?
Hi, I have this exact same issue. My wordpress setup was running for a few days, then I was suddenly unable to connect to the database. When I try to restart I get
My initial setup was based on https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04
Not sure what the issue is. Is the problem that my user with uid=1000 doesn’t have proper rights to run upstart or something?