I've just increased memory to 2GB and swap to 2GB to see if the extra headroom fixes it. 0 mrseanhunter May 17, 2016 I had the exact same thing. But no matter I access www.ycshao.com or www.ycshao.com/wp-admin or http://www.ycshao.com/wp-admin/maint/repair.php, I always get "cannot connect to database". Log In to Comment 36 Answers 1 kamaln7 MOD October 17, 2013 @Dave: Is MySQL running? By the way, which php5 modules are you running? Source
It was helpful. 0 BetodaSilva May 19, 2016 Hello, I've run sudo a2enconf block-xmlrpc before install JetPack, and now I'm getting a error "Your JetPack has a glitch". These attacks exploit the XML-RPC functionality in WordPress, as described on Securi.net You can see if you are being taken down by this attack by running one of the following two Sign Up Log In submit Tutorials Questions Projects Meetups Main Site logo-horizontal DigitalOcean Community Menu Tutorials Questions Projects Meetups Main Site Sign Up Log In submit View All Results By: MarkoRadak I found this link that helped me http://cssjockey.com/how-to-create-a-cron-job-to-start-mysql-if-it-stops/ 0 jaapgrolleman December 9, 2015 Same here, it's really frustrating and costly to pay programmers if they cannot find a solution but blame
I.e Take a copy of 'sample', modify it to contain db name, username and pwd, and save it as wp-config.php Then you should be right for the WP install. Are you sure you want to replace the current answer with this one? I've followed their suggested settings.
i tried swap files and editing wp-config, but no help 0 accounting5f608 October 3, 2015 Same issue here. Reply Log In to Comment Have another answer? Worked fine for about 3 weeks now getting this issue multiple times per day and restarting the whole server works but is not a solution... A question can only have one accepted answer.
Nobody at DO seems to be aware of this issue. 0 nestchris December 17, 2015 Having the same issue here. How to draw a clock-diagram? Do I need to change following file as well? $ cat /usr/share/wordpress/wp-config-sample.php Code: Best, Eris Platform Support Specialist 1 Youno January 23, 2016 I love you for this! <3 0 eris MOD January 23, 2016 💙 0 tagin April 2, 2016 If the issue
This is a brand new site, and currently has no other content. Thanks for posting. 0 doublek13 October 23, 2016 thanks :) 1 1stnas August 16, 2016 Problem solve with this code.. It would would be great to get a representatives input on the issue. Sign into your account, or create a new one, to start interacting.
Reply Log In to Comment 0 nizamsys February 4, 2015 Please change it to mariadb. http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/ Also, the "Better WP Security" plugin is configured to create a backup of the WP DB every few days. Best, Eris Platform Support Specialist How To Optimize Apache Web Server Performanceby Matthew Nuzum If you're running Apache on one of the smaller sizes of droplets, or if you want to Join them; it only takes a minute: Sign up Error establishing a database connection - Ubuntu WordPress on 14.04 up vote 1 down vote favorite Today I have started to see
Check out their Protect module. this contact form First I was told it was due to noisy neighbors, then I was told it might be something wrong on my end. Besides the memory allocation and the mysql logs, you may wish to have the wordpress installs be as clean as possible. I'll be researching in the meantime.
Apache VirtualHost Config
Reply Log In to Comment 0 2014nian April 8, 2014 After power cycle all database connect error,restore the backup also can not connect.how to solve it? Blocked the access using iptables and we'll see if that works. As the database is the only thing crapping out, a full restart is not required 0 rochak10 January 29, 2016 thanks.
Then I followed Cannot open php PHTML file http://www.unixmen.com/cannot-open-php-phtml-file/ install libapache2-mod-php5 Now on browser running; http://localhost/wordpress/ Code: Error establishing a database connection I haven't setup mysql yet. So my issue is I keep getting "cannot connect to database" error. Log In to Comment Leave a Comment Add comments here to get more clarity or context around a question. Everything I have found online points toward a wpconfig problem, but could this really be the case since I usually have zero problems publishing posts, adding media, pages, etc?
Separate namespaces for functions and variables in POSIX shells Do I have to delete lambdas? Upon reboot the /var/run/mysqld directory seemed to vanish. Whatever you want it to be, the name of your site. Check This Out How to open .ica file and setup Citrix client on Ubuntu.
I'm opening support tickets and receiving bullshit answers. But after that, I cannot access my wordpress site any more. I'll be using Ubuntu 12.04 in the examples but the principles I'm demonstrating are applicable to other versions of Linux as well. Droplet details: 512 MB Memory / 20 GB Disk / LON1 - Ubuntu WordPress on 14.04 wordpress apache digital-ocean share|improve this question asked Apr 27 at 11:21 gon250 1,066830
Tic Tac Toe - C++14 Why is the size of my email so much bigger than the size of its attached files? Restart the web server to enable the changes: sudo service apache2 restart What is weird is when I restart the droplet the website works for a couple of seconds so.. What a smart industry paradigm. cassius123 @cassius123 2 years, 5 months ago Just in case someone else has this problem, it turned out mySQL was crashing for lack of memory.
Share it with others to increase its visibility and to get it answered quickly. Sign into your account, or create a new one, to start interacting.