Solve “Error Establishing Database Connection” on WordPress

Connect to server console. In my case, I just log in digitalocean and click console from my droplet. Check mysql status: sudo netstat -plt If we can’t see mysql appear in output from previous step, restart mysql manually: sudo systemctl start mysql Problem should be fixed if you are lucky 🙂

How to let WordPress only displays summary of article on home page

Firstly, find the directory: Appearance -> Theme Editor -> Main Index Template -> index.php, and locate the code: /* Start the Loop */ while ( have_posts() ) : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called …