<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wordpress tips &#8211; ASP.NET Hosting Reviews and Guides</title>
	<atom:link href="https://topreviewhostingasp.net/tag/wordpress-tips/feed/" rel="self" type="application/rss+xml" />
	<link>https://topreviewhostingasp.net</link>
	<description>ASP.NET Hosting &#124; Reviews &#124; Tips &#38; Tutorial</description>
	<lastBuildDate>Wed, 11 Jul 2018 05:03:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://topreviewhostingasp.net/wp-content/uploads/2017/01/cropped-trhaico-32x32.png</url>
	<title>wordpress tips &#8211; ASP.NET Hosting Reviews and Guides</title>
	<link>https://topreviewhostingasp.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Why Get Error Establishing a Database Connection in WordPress and The Solution</title>
		<link>https://topreviewhostingasp.net/why-get-error-establishing-a-database-connection-in-wordpress-and-the-solution/</link>
					<comments>https://topreviewhostingasp.net/why-get-error-establishing-a-database-connection-in-wordpress-and-the-solution/#respond</comments>
		
		<dc:creator><![CDATA[Jacques Hunt]]></dc:creator>
		<pubDate>Wed, 11 Jul 2018 05:03:14 +0000</pubDate>
				<category><![CDATA[Hosting Tips]]></category>
		<category><![CDATA[fix error establishing connection]]></category>
		<category><![CDATA[fix issue error establishing connection]]></category>
		<category><![CDATA[wordpress simple fix issue]]></category>
		<category><![CDATA[wordpress tips]]></category>
		<guid isPermaLink="false">https://topreviewhostingasp.net/?p=2024</guid>

					<description><![CDATA[When you start using WordPress, you’re bound to encounter a number of errors, some grievous, other not so much. It’s inevitable; it can be your fault, at times systems break, someone fails at their job, natural calamities strike – anything could cause an error. Even something as good as an increase in traffic can break your WordPress site, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>When you start using WordPress, you’re bound to encounter a number of errors, some grievous, other not so much. It’s inevitable; it can be your fault, at times systems break, someone fails at their job, natural calamities strike – anything could cause an error.</p>
<p>Even something as good as an increase in traffic can break your WordPress site, leaving you with an error and a bad taste in your mouth.<span id="more-18623"></span></p>
<p>Now, just like any other human-made project, WordPress is susceptible to its share of errors, none of which is as baffling and strenuous as the <strong>“error establishing database connection” </strong>error. That’s because this error doesn’t come with details of what went wrong, despite that it can be caused by several things, which – of course – only adds salt to the wound.</p>
<h2>What is the Error Establishing a Database Connection?</h2>
<p>All of the information on your WordPress site, such as post data, page data, meta information, plugin settings, login information, etc. is stored in your MySQL database. The only data that isn’t stored there is media content such as images and your theme/plugin/core files such as index.php, wp-login.php, etc. When someone visits your website, PHP executes the code on the page and queries the information from the database, which then displays it to the visitor in their browser.</p>
<p>If for some reason this isn’t working properly, you are left with the error establishing a database connection message, as seen below. The entire page is blank because no data can be retrieved to render the page, as the connection is not working properly. Not only does this break the frontend of your site, but it will also prevent you from accessing your WordPress dashboard.</p>
<h2>Why do you get this error?</h2>
<p>Well in short, you are getting this error because WordPress is unable to establish a database connection. Now the reason why WordPress is unable to establish a database connection can vary. It could be that your database login credentials are wrong or have been changed. It could be that your database server is unresponsive. It could be that your database has been corrupted. In our experience, majority of the times this error happens because of some sort of server error however there could be other factors as well. Lets take a look at how to go about troubleshooting this problem.</p>
<h2>3 Steps to Determine this Error Message</h2>
<h3>1. Determine where the error is occurring</h3>
<p>Can you see your website normally, but get the error when trying to access wp-admin? Or maybe your website is down, but you’re getting a slightly different error when you try to login: “One or more database tables are unavailable. The database may need to be repaired.”</p>
<p>These are signs of database corruption.</p>
<p>WordPress has a built-in way to attempt to repair your database, but you’ll have to enable this feature first. To do so, you’ll need to access your wp-config.php file, which contains your WordPress installation settings and configuration.</p>
<p>You can find wp-config in the your root WordPress file directory. You can access it by logging into your control panel, selecting File Manager, and navigating to the folder where you installed WordPress.</p>
<p>Once you have wp-config open, add this line of code to the bottom:</p>
<pre class="lang:default decode:true ">define( 'WP_ALLOW_REPAIR', true );</pre>
<p>This line will enable you to optimize and repair your database by navigating to www.yourwebsite.com/wp-admin/maint/repair.php (just replace “yourwebsite.com” with your actual URL).</p>
<p style="text-align: center;"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2025" src="https://topreviewhostingasp.net/wp-content/uploads/2018/07/image_1.png" alt="" width="1001" height="519" srcset="https://topreviewhostingasp.net/wp-content/uploads/2018/07/image_1.png 1001w, https://topreviewhostingasp.net/wp-content/uploads/2018/07/image_1-300x156.png 300w, https://topreviewhostingasp.net/wp-content/uploads/2018/07/image_1-768x398.png 768w" sizes="(max-width: 1001px) 100vw, 1001px" /></p>
<p>You should see the above screen with two options to repair, or repair and optimize, your database. Feel free to choose either; just note that optimizing will take longer.</p>
<p>Please note that this database repair page is <b>not secure</b>; anyone can access that URL without having to login. Once you’re done repairing your database, be sure to <b>remove the line of code you added to wp-config.</b> This will disable access to the repair page and prevent anyone else from messing with your database.</p>
<p>Keep wp-config open for now until you’re certain the error is resolved and your website is working again. If you’re still getting the same error message, you’ll need wp-config open for the next step.</p>
<p>If this doesn’t apply to you, or if it didn’t work, move on to the next step to continue troubleshooting.</p>
<h3>2. Check your database login settings in wp-config</h3>
<p>If the above step didn’t work or didn’t apply to you, then the next thing you can do is take a look at your database settings in your wp-config file.</p>
<p>Wondering how your database login credentials could have suddently stopped working? Things like switching hosting companies or changing anything about your database name or user information could cause the error if your wp-config file wasn’t updated to the new information.</p>
<p>You may still have the wp-config file open from the last step. If not, log into your host’s cPanel and open the File Manager. Navigate to the directory where you installed WordPress, and look for a file called wp-config.php. Go ahead and open that for editing.</p>
<p>You’ll see the login credentials for your database, probably near the top of the file. It should look something like this:</p>
<pre class="lang:default decode:true ">// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
 
/** MySQL database username */
define( 'DB_USER', 'username_here' );
 
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
 
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );
</pre>
<p>As you can see, there are four pieces of information WordPress needs to access your database:</p>
<ol>
<li>The name of the database (“DB_NAME”)</li>
<li>The login username (“DB_USER”)</li>
<li>The login password (“DB_PASSWORD”)</li>
<li>The database host (“DB_HOST”)</li>
</ol>
<p>If any one of these values is incorrect, WordPress will not be able to connect to the database.</p>
<p>One way to check on your database outside of WordPress is by using PHPMyAdmin, a tool for accessing and editing MySQL databases. PHPMyAdmin is included with most hosting plans, and you can find it in your cPanel dashboard.</p>
<p><b>Warning:</b> Be very careful using PHPMyAdmin, since you’ll be dealing directly with your site’s database.</p>
<p>Once you’ve logged in to PHPMyAdmin, you will see a list of databases on your server in the left-hand column. Click on the one that matches the name in your wp-config file (it will be the value after DB_NAME, where it says “database_name_here” in the above sample code).</p>
<p>(Don’t see any databases? Contact your hosting company, since the entire problem may be an issue with your server.)</p>
<p>After clicking on your database name, you’ll see the main screen populate with the names of the tables in your database. To make sure this is the correct database, you can find the table named “wp_options” and click on the ‘Browse” option next to it. You should see your website’s name, URL, and your other general settings here. Now you know whether or not you have the correct database name in your wp-config file. If it’s not correct, go ahead and fix it in wp-config.</p>
<p>Now let’s check on the username and password.</p>
<p>There are a few ways to do this, some more convoluted than others. I’ll give you two options.</p>
<ol>
<li>You can either create a simple .php file to test whether you are able to connect to your database with the credentials in your wp-config file, or</li>
<li>You can just create a new user and password, and update your wp-config file with the new info. You’ll have to do this if #1 fails, so you might just want to skip to this step.</li>
</ol>
<p><strong>Option 1: Test your existing credentials.</strong></p>
<p>Create a file in your WordPress directory called something like testconnection.php (the name doesn’t matter; just the .php extension). Paste the following code:</p>
<pre class="lang:default decode:true ">&lt;?php
$test Connection = mysql_connect('localhost', 'root', 'password');
if (!$testConnection) {
die('Error: ' . mysql_error());
}
echo 'Database connection working!';
mysql_close($testConnection);
?&gt;
</pre>
<p>Once you’ve created that file, just navigate to the URL of the file in your browser (e.g. your site.com/testconnection.php). You’ll see either a successful connection message, or an error with more details.</p>
<p>If the username and password isn’t working, we can just create a new one.</p>
<p><strong>Option 2: Create a new database user and password.</strong></p>
<p>We can do that using a different tool available in cPanel called “MySQL® Databases.” Go ahead and click on that, then scroll down to the heading: MySQL Users: Add New User.” Choose a username and strong password, and make note of them for your wp-config file. Click “Create User.” Now scroll down to the heading “Add User To Database,” and choose your new username and your WordPress database, and click “Add.” Update your wp-config file with the new username and password.</p>
<p>Now your database name, username, and password are all correct. That just leaves DB_HOST.</p>
<h3><b>3. </b>Check your Web Host (MySQL Server)</h3>
<p>Often you will notice this Error establishing database connection when your site gets swarmed with a lot of traffic. Basically, your host server just cannot handle the load (specially when you are on shared hosting). Your site will get really slow and for some users even output the error. So the best thing you should do is contact your hosting provider and ask them if MySQL server is responsive.</p>
<p style="text-align: center;"><a href="http://www.asphostportal.com"><img decoding="async" class="alignnone size-full wp-image-338" src="https://topreviewhostingasp.net/wp-content/uploads/2017/03/click-here-asphostportal-discount.jpg" alt="" width="714" height="59" srcset="https://topreviewhostingasp.net/wp-content/uploads/2017/03/click-here-asphostportal-discount.jpg 714w, https://topreviewhostingasp.net/wp-content/uploads/2017/03/click-here-asphostportal-discount-300x25.jpg 300w" sizes="(max-width: 714px) 100vw, 714px" /></a></p>
<p>For those users who want to test if MySQL server is running yourself, you can do a few things. Test other sites on the same server to see if they are having the issue. If they are also getting the same error, then most definitely there is something wrong with your MySQL server. If you do not have any other site on this same hosting account simply go to your control panel and try to access phpMyAdmin and connect the database. If you can connect, then we need to verify if your database user has sufficient permission. Create a new file called <strong>testconnection.php</strong> and paste the following code in it:</p>
<pre class="lang:default decode:true ">&lt;?php
$link = mysql_connect('localhost', 'root', 'password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?&gt;</pre>
<p>Make sure to replace the username and password. If the connected successfully, then it means that your user has sufficient permission, and there is something else that is wrong. Go back to your wp-config file to make sure that everything there is correct (re-scan for typos).</p>
<p>If you cannot connect to the database by going to phpMyAdmin, then you know it is something with your server. It does not necessarily means that your MySQL server is down. It could mean that your user does not have sufficient permission.</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://topreviewhostingasp.net/why-get-error-establishing-a-database-connection-in-wordpress-and-the-solution/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>8 Tips to Increase Your WordPress Speed</title>
		<link>https://topreviewhostingasp.net/8-tips-to-increase-your-wordpress-speed/</link>
					<comments>https://topreviewhostingasp.net/8-tips-to-increase-your-wordpress-speed/#respond</comments>
		
		<dc:creator><![CDATA[Jacques Hunt]]></dc:creator>
		<pubDate>Tue, 03 Apr 2018 05:46:30 +0000</pubDate>
				<category><![CDATA[Hosting Tips]]></category>
		<category><![CDATA[increase wordpress speed]]></category>
		<category><![CDATA[speed wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[wordpress slow]]></category>
		<category><![CDATA[wordpress tips]]></category>
		<category><![CDATA[wordpress tricks]]></category>
		<category><![CDATA[wordpress tutorial]]></category>
		<guid isPermaLink="false">https://topreviewhostingasp.net/?p=1255</guid>

					<description><![CDATA[In today’s age, awesome online experiences are a crucial element to building a loyal fanbase. While a positive digital experience can lead to brand advocacy, one that fails to meet expectations on things like site speed can lead a prospect running in the other direction. In fact, Google engineers have discovered the blink of an eye [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In today’s age, awesome online experiences are a crucial element to building a loyal fanbase. While a positive digital experience can lead to brand advocacy, one that fails to meet expectations on things like site speed can lead a prospect running in the other direction. In fact, Google engineers have discovered the blink of an eye — 400 milliseconds — is too long and causes people to search less.</p>
<p>Not only that, but page speed also affects SEO. Google takes the user experience into consideration with its page ranking algorithm. Since a slow loading site detracts from the user experience, this can damage SEO rankings.</p>
<p>To help you deliver the best experience online possible (and help improve your SEO efforts), we’ve provided this list of tips to help enhance the performance of your WordPress site. Whether it be page size, slow plugins, or some other culprit, read on for some useful tips to help boost page speed times and improve your site’s overall performance.</p>
<p><strong>#1. Your Theme is Important!</strong></p>
<p>Behind every WordPress site, there is a theme or framework and along with that can sometimes come bloat. Every theme is coded differently and because of that there are those that are better than others. The default WordPress themes such as <a href="https://wordpress.org/themes/twentyfifteen/">Twenty Fifteen</a> is actually quite fast because it is very lightweight.</p>
<p>Be careful when purchasing themes on popular marketplaces such as ThemeForest and <a href="https://creativemarket.com/">Creative Market</a>. While there are a lot of great themes on there, you also need to realize that developers sometimes just keep adding features to generate more sales. It is more about finding the right developers. The Total WordPress theme from the devs over at WPExplorer is a great example of a multi-purpose theme that still takes performance into consideration. Even many of their demos, which are packed full of content, load in under 800ms.</p>
<p><strong>#2. Use Caching</strong></p>
<p>Caching is another important factor when it comes to speeding up WordPress. Caching stores your pages and posts as static files which are then served to your visitors, reducing the processing load on your server.</p>
<p>You can utilize caching by using WordPress caching plugins, implementing browser caching, and server-side caching. You can use W3 Total Cache, WP Super Cache, Cache Enabler, and WP Rocket. We use W3 Total Cache here.</p>
<p style="text-align: center;"><img decoding="async" class="alignnone size-full wp-image-1257" src="https://topreviewhostingasp.net/wp-content/uploads/2018/04/cache_WP.jpg" alt="" width="334" height="151" srcset="https://topreviewhostingasp.net/wp-content/uploads/2018/04/cache_WP.jpg 334w, https://topreviewhostingasp.net/wp-content/uploads/2018/04/cache_WP-300x136.jpg 300w" sizes="(max-width: 334px) 100vw, 334px" /></p>
<p><strong>#3. Configure CDN</strong></p>
<p style="text-align: center;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1258" src="https://topreviewhostingasp.net/wp-content/uploads/2018/04/cdn.png" alt="" width="982" height="500" srcset="https://topreviewhostingasp.net/wp-content/uploads/2018/04/cdn.png 982w, https://topreviewhostingasp.net/wp-content/uploads/2018/04/cdn-300x153.png 300w, https://topreviewhostingasp.net/wp-content/uploads/2018/04/cdn-768x391.png 768w" sizes="(max-width: 982px) 100vw, 982px" /></p>
<p>No matter a user’s location, your content should be delivered blazing fast. Sometimes this isn’t always feasible, though…that is, if your site isn’t on an infrastructure that contains data centers in other parts of the world. Distance can mean lag in content delivery, which is where a content delivery network (CDN) becomes handy.</p>
<p>A CDN leads to faster page load times because when configured, your website will use an optimized server that’s closest to your site visitor. The data center will store static content and files, and then deliver them to users based on their location. This can help reduce external HTTP requests because the static content is already ready to go instead of requesting tons of HTTP at once.</p>
<p>Choosing a CDN depends on the popularity and needs of your site. Some WordPress CDN solutions include MaxCDN, Cloudflare, or CacheFly. (WP Engine’s MaxCDN solution can be configured through the User Portal.)</p>
<p><strong>#4. Optimize Your WordPress Database</strong></p>
<p>WordPress has a tendency to start slowing down if you don’t keep your database optimized. There are ways to keep your database clean by disabling and or limiting post revisions, deleting old revisions, and being aware of the 100 page WordPress limitation. You can use WP-Optimize plugin to clean all post revisions, clean auto draft post, remove spam comments, unapproved comments, transient options, pingbacks, and trackbacks. In the newest version of WP-Optimize, you can also enable auto-cleanup on a predetermined schedule.</p>
<p><strong>#5. Using Gzip Compression</strong></p>
<p>Gzip is another form of compression which compresses web pages, CSS, and javascript at the server level before sending them over to the browser. You can check if your WordPress site is already compressed by using Check GZIP Compression.</p>
<blockquote><p>GZIP compression saves 50% to 80% bandwidth and will therefore significantly increase the website’s loading speed. – <strong>Check GZIP compression</strong></p></blockquote>
<p><strong>#6. Remove Unused Plugins</strong></p>
<p>A common reason for WordPress slowing down is that people have too many plugins running, creating too much overhead for their webserver to handle. Keeping the number of plugins you have installed to a minimum is very important. Before simply deleting plugins there are a couple ways you can determine which ones are slowing down your site. Then after analyzing the impact on load times, <strong>ask yourself if the plugin is something you really need</strong> or perhaps you could accomplish the same thing a different way.</p>
<p>You can check plugin that utilize high resources by installed P3 (Plugin Performance Profiler).  <img loading="lazy" decoding="async" class="alignnone size-full wp-image-1259" src="https://topreviewhostingasp.net/wp-content/uploads/2018/04/plugin-performance-profiler.jpg" alt="" width="887" height="577" srcset="https://topreviewhostingasp.net/wp-content/uploads/2018/04/plugin-performance-profiler.jpg 887w, https://topreviewhostingasp.net/wp-content/uploads/2018/04/plugin-performance-profiler-300x195.jpg 300w, https://topreviewhostingasp.net/wp-content/uploads/2018/04/plugin-performance-profiler-768x500.jpg 768w" sizes="(max-width: 887px) 100vw, 887px" /></p>
<p>P3 is a free WordPress plugin created by GoDaddy to help you see which plugins are slowing down your site. With this plugin you can see the following:</p>
<ul>
<li>Runtime by plugin</li>
<li>Total active plugins and page load time</li>
<li>Plugin impact of page load time</li>
<li>Number of MySQL queries (page-level)</li>
<li>Historical comparison of scans</li>
</ul>
<p><strong>#7. Upgrade to latest PHP version</strong></p>
<p>Making the switch from PHP 5 to PHP 7 can make a tremendous impact on site speed. In fact, PHP 7 can handle uncached hits two to three times faster than on PHP 5.5 and can result in 30-50 percent improvements in memory consumption.</p>
<p>Before making the switch, do know that PHP 7 is not backward compatible. This means once you upgrade, you cannot go back to legacy systems. That’s why it’s recommended to test your site first with the PHP Compatibility Checker plugin to detect if your theme or any plugins might present any incompatibility issues.</p>
<p><strong>#8. Optimize Images</strong></p>
<p>Images are imperative to keeping a site visitor engaged. While your site may contain a ton of beautiful imagery, it’s a good idea to optimize these images to achieve fast page load times. When directly uploaded to your site, images contain metadata that take up unneeded space. Too large of a file can hog up bandwidth and cause a page to lag in load times.</p>
<p>A plugin like <a href="https://wordpress.org/plugins/wp-smushit/" target="_blank" rel="noopener noreferrer">Smush Image Compression and Optimization</a> or <a href="https://wordpress.org/plugins/shortpixel-image-optimiser/" target="_blank" rel="noopener noreferrer">ShortPixel Image Optimization</a> will take the work off your back by automatically stripping an image of unnecessary data upon upload (without sacrificing image quality).</p>
]]></content:encoded>
					
					<wfw:commentRss>https://topreviewhostingasp.net/8-tips-to-increase-your-wordpress-speed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
