Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Error establishing a database connection on second virtual host

Discussion in 'Misc WordPress Requests' started by benjaone1, Jan 25, 2018.

  1. benjaone1

    Guest

    Error establishing a database connection on second virtual host, by benjaone1

    Hi,

    I have created a 2nd virtual host on a LAMP stack Ubuntu 16.04 and exsratcted WordPress on the document root.

    I get Error establishing a database connection.
    WP provides a new wp-config.php it couldn’t connect with it.
    I am using the same database- name and user as from my first virtual host.

    How do I get WP to connect to the same database using the same wp-config.php?

    Thanks

    Error establishing a database connection on second virtual host
     
    #1

Share This Page

Monarch Social Sharing Plugin