• Resolved akerbak

    (@akerbak)


    Hi all,

    I’m currently trying to set up a new domain for the webserver containing a WordPress Multisite. Currently located at https://hviteorn.hosterspace.com, the domain https://hviteorn.no points to the exact same location. The database is located with the host supplier, with it’s own IP.

    After changing DOMAIN_CURRENT_SITE in wp-config.php, I get an error establishing database connection. The DB info (pass,user etc) are still the same, and when resetting DOMAIN_CURRENT_SITE to hviteorn.hosterspace.com the connection works like a charm.

    Anyone who knows where in WP I need to update corresponding information (I’ve tested by changing domain value in the db as well in wp_site, wp_blogs and wp_options) / why this happens? Any help would be much appreciated!

    Marius

Viewing 3 replies - 1 through 3 (of 3 total)
  • Because in multisite the domain is saved in almost every table, so simply changing it in the config (like for single) doesn’t work. as you can see.

    Download a SQL dump of the db. Do a search & replace. Upload it.

    Thread Starter akerbak

    (@akerbak)

    Which did the trick… You’re a lifesaver, thank you ??

    Confirmed, this works exactly as described on 3.0.4 as well. Thanks Andrea_r, your a lifesaver!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘DB connection lost after editing DOMAIN_CURRENT_SITE in wp-config.php’ is closed to new replies.