• Resolved kellsborojack

    (@kellsborojack)


    I have recently moved to a new host and am having trouble when connecting to the database. I have amended wp-config.php
    to reflect the database changes i.e. new login name etc.

    Using phpMyAdmin I can connect to the database and can see my posts etc. in the database. This would suggest there’s nothing wrong with the database

    When I navigate to my website I get the standard WordPress page about not being able to connect to the database. If I use the login and password given to me by my host the WordPress error page mentions not being able to connect to the database at localhost. If however I use the login name displayed by myPhpAdmin (which has the format username@ipadress)then the word localhost is changed from localhost to my actual database server. (Hope that’s not too confusing)

    Any suggestions ?

    Thanks very much

Viewing 1 replies (of 1 total)
  • Thread Starter kellsborojack

    (@kellsborojack)

    I had a similar problem after moving my website to a new hosting plan. In the end I had to copy my backed up WordPress files to the server but I left the database blank.

    I then ran the install program (install.php) which populated the database with tables.

    Using phpMyAdmin I deleted a table one at a time from the database and imported the corresponding table from a database backup. I did this until I imported the table that was causing the error message. This was the wp_options table. I’n not sure which part of the table was causing a problem.

    I then deleted all the tables, repeated the install program and re-imported all the tables except wp_options.

    The drawback to this was I had to re-configure my sidebar modules but with the site being down nearly three weeks I was just grateful to have something to work with.

Viewing 1 replies (of 1 total)
  • The topic ‘Problems after moving to new host’ is closed to new replies.