We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32654
    • 26 Posts
    I have just posted this in another part of the forum but I think this is probably the right place so aplogises for double posting.

    My IPS has just moved my website to a new datacentre.
    Trouble is when I now try to access the website I get the following message:


    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: mysql_connect() [function.mysql-connect]: Access denied for user ’xyz_m1’@’ns2.nhgdns.com’ (using password: YES)
    Error type/ Nr.: Warning - 2
    File: /home/xyz/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php
    Line: 87
    Line 87 source: if (!$this->conn = ($persist ? mysql_pconnect($host, $uid, $pwd) : mysql_connect($host, $uid, $pwd, true))) {

    Parser timing
    MySQL: 0.0000 s (0 Requests)
    PHP: 0.0135 s
    Total: 0.0135 s
    Error while inserting event log into database.

    Can anyone shed some light.
    Many thanks

    W
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You will need to correct the information in manager/includes/config.inc.php as to your database connection information. You’ll also need to go to Tools->Configuration (once you can log in) and corrrect the paths in the Interface and Features tab, as well as the File Manager tab.

      You may need to upload your original Install folder and re-run the installer in Upgrade mode to get everything working smoothly.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org