__________     __ __     __  _______    ________
  / ____/ __ \   / // /    / / / /  _/ |  / / ____/
 / / __/ / / /  / // /_   / /_/ // / | | / / __/
/ /_/ / /_/ /  /__  __/  / __  // /  | |/ / /___
\____/\____/     /_/    /_/ /_/___/  |___/_____/

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

WordPress Multisite "Error establishing a database connection"

BY: @ascending.taurus | CREATED: Nov. 29, 2018, 4:37 a.m. | VOTES: 10 | PAYOUT: $0.04 | [ VOTE ]

You are sure you entered right database name, database user and server but still show error "Error establishing a database connection" on the front, what the reason ? If you met that in a multisite WordPress installation then it may caused by wrong domain name setting in you database.

  1. Go to the dabhoboard such as http://localhost/wordpress-401-mu/wp-admin you will see the following screen.

  2. As the screen printed it cannot find out the site localhost/wordpress-401-mu/ in your database table mur_blogs ( if you use default database prefix then it is wp_blogs ).

  3. Follow the instruction and open you database with phpmyadmin( or other database management tool ), and open the table mur_blogs ( default wp_blogs ). Plase change the domain & path to correct as the follow.
    * Because you use localhost as the domain in you XAMPP, so domain always should be localhost, and the primary site may be localhost/your-directory-name/sub_site/

Posted from my blog with SteemPress : https://waytowp.com/wordpress-multisite-error-establishing-database-connection/

TAGS: [ #utopian-io ] [ #tutorials ] [ #wordpress ] [ #blog ] [ #wordpressmultiplesite ]

Replies

@portugalcoin | Nov. 29, 2018, 9:08 p.m. | Votes: 8 | [ VOTE ]

Thank you for your contribution @ascending.taurus.

  • Your tutorial is too small to be considered a good tutorial. Explain more in detail.

  • There is already a lot of information on the internet on this subject. Try to bring a subject that is very useful to the open source community.

  • In a next tutorial we suggest you use the tutorials template. Link

  • Here you can find more information about the utopian and category of tutorials.

- Example of a good tutorial Link.

Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

@utopian-io | Dec. 2, 2018, 12:06 a.m. | Votes: 0 | [ VOTE ]

Thank you for your review, @portugalcoin! Keep up the good work!

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>