No menu items!

WinNMP – Error establishing a database connection

So there is automatic way of creating projects. Avoid that. Do everything by yourself since there are constant database issues. These issues are beyond repair. It is easier to reinstall the whole thing and import all your backups, than try to figure out how to solve it.
Personally, I don’t have time to ask for support. But I do have time to do things manually, which is, in most scenarios 1 minute longer than automatic way.

So, if you like WinNMP as much as I do, but you don’t want MySQL getting corrupted (Error establishing a database connection) or whatnot then follow next steps when creating new projects:

  • Reinstall WinNMP
  • create new folder in c/winnmp/www/
  • open adminer and create new database
  • copy – paste WordPress files to new folder
  • run WordPress installation
  • Done!

For permalinks to work do this:

– navigate to C:\WTServer\conf\nginx.conf. (or C:\WinNMP\conf\nginx.conf)
Add this to it after every WordPress installation:

location /nameofyourfolder {
try_files $uri $uri/ /nameofyourfolder/index.php?$args;
}

Please replace the ‘nameofyourfolder’ with your folder name where’s your WordPress installation placed. You should add this for every WordPress installation if you want it to work with Permalinks enabled.
In case you are asking yourself for the exact location on where to put this code inside “nginx.conf” file, well just put it at the end, like this for example:

Done!

For all other things, errors and configurations check my other post:

WinNMP configuration for WordPress

Top Performing WordPress Cache...

Typically, the caching plugin that is considered the best...

Avoid these 6 common...

Explaining what makes a good hosting environment for WordPress...

Setup Gmail SMTP for...

Learn how to set up the Gmail SMTP in WordPress to send emails.

WordPress Cron Job

Why not to use WordPress cron and why all...

CyberPanel and WordPress

What's better than Nginx? OpenLiteSpeed is better. CyberPanel is...

WooCommerce PayPal credit card...

Yes, even if you don't have an US PayPal...

Top Performing WordPress Cache Plugins for Fast Website Loading

Typically, the caching plugin that is considered the best and fastest is the one that has a fast Time To First Byte (TTFB), effectively...

Avoid these 6 common issues to choose the best WordPress hosting for your website

Explaining what makes a good hosting environment for WordPress websites can be challenging, given the many different setups that can enable WordPress to run...

Setup Gmail SMTP for WordPress Emails: A Step-by-Step Guide

Learn how to set up the Gmail SMTP in WordPress to send emails.

WordPress Cron Job

Why not to use WordPress cron and why all the fuzz? If you are running your own VPS or if you are on a shared...

CyberPanel and WordPress

What's better than Nginx? OpenLiteSpeed is better. CyberPanel is powered by OpenLiteSpeed and that is great news for WordPress. The faster server, the faster...

WooCommerce PayPal credit card checkout for non US accounts

Yes, even if you don't have an US PayPal account you can have your customers checkout and pay with their Visa or other cards. We...

Newspaper 9.7 to 11 theme activation

Protect your privacy and never send your real activation code. GDPR and GPL is abused by the tagDiv team. Lucky us WordPress is an open source. <3

Newsmag 4.7 theme activation

For quite some time I have been wondering about this theme, so I decided to try it. I obtained an original copy of the...

Easy Engine v4 WordPress migration

How to migrate WordPress to Easy Engine v4? Here is the tutorial if you plan on using WP All in One WP Migration plugin.