• Hello everyone,
    I have installed WordPress latest vesrsion on one of my client’s domain.
    What I want to do is

    Upload all the files on example.com (This I have done)
    Use the database created on domain.com (a domain other than that where I have uploaded the wordpress files.

    Is it possible practically? If not then WHY?
    If yes then HOW?

    I tried to connect the database using below config.php settings

    /** The name of the database for WordPress */
    define('DB_NAME', 'databse_name'); {Note: created on domain.com}
    
    /** MySQL database username */
    define('DB_USER', 'database_username'); {Note: created on domain.com}
    
    /** MySQL database password */
    define('DB_PASSWORD', 'password'); {Note: created on domain.com}
    
    /** MySQL hostname */
    define('DB_HOST', 'IP of domain.com');

    Thanks & Regards
    Amjad Khan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you used the database browsing application phpmyadmin to access this database, this will check that yoyr settings are all correct.

    Suggest that you try changing:
    define('DB_HOST', 'IP of domain.com');
    to
    define('DB_HOST', 'domain.com');

    Thread Starter amjadkhan06

    (@amjadkhan06)

    Hello Ross,

    Thanks for the reply, but changing IP to domain doesn’t work.

    I think everything seems to be fine in the database, I have checked everything using phpmyadmin.

    Have you tried anything before like I am trying to do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Files on one server and database on another server’ is closed to new replies.