• Resolved Abel Bottello

    (@akerfeldt)


    Hi!

    I have 2 hosting accouts in different servers. I have the WordPress files in one and the database in the other one.
    Because the mysql server from the first host is not running. The problem is to modify the wp-config.php, as the database server is different from the wordpress one I cannot leave the string: ‘localhost’.

    The wordpress address is: https://www.microplagio.com
    And the mysql server address is on https://www.abelbotello.info

    I tried this:

    define('DB_HOST', '74.52.113.226');
    define('DB_HOST', 'www.abelbotello.info');
    define('DB_HOST', 'abelbotello.info');

    And all of them including https:// as well.

    Nothing works. Can someone help me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Well if the wiki software you’ve got running at https://www.abelbotello.info/wiki/index.php?title=Portada is using the same database server, look at the LocalSettings.php for the $wgDBserver value and use that in wp-config.php.

    [edit – actually that probably does use localhost]

    You might have to check with the company hosting the MySQL server and ask them if they even allow access to their MySQL server from an ‘external’ source.

    Thread Starter Abel Bottello

    (@akerfeldt)

    I have not thought that. Perhaps you are right and the hosting service does not allow external access to their database servers.

    I will keep asking to make them restore the server in the localhost and will check if I can access a remote MySQL server.

    Thanks anyway!

    Thread Starter Abel Bottello

    (@akerfeldt)

    Well… Thanks a lot anyway.

    The guy from the host company has fixed the problem with the mysql server.

    So I can use the localhost now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘DataBase error – Changing only the database server’ is closed to new replies.