We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9930
    • 23 Posts
    I received the parse error below at this site: http://www.montagueco.com/test/octagon_test/. I’m relatively new to MySQL but after searching the forums found this post (http://modxcms.com/forums/index.php/topic,6049.msg42866.html#msg42866). It seems like the error is the result of creating a new database with a different name but the same username as the database that is now causing the error. However, the link to the bug isn’t functional and I’m now stuck, and the issue may be from something else.

    « 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 'montagu4_octagon'@'localhost' (using password: YES)	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/home1/montagu4/public_html/test/octagon_test/manager/includes/extenders/dbapi.mysql.class.inc.php	 
      Line: 	89	 
      Line 89 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.0247 s	 
      Total: 	0.0247 s


    I’ve checked the DB via phpMyAdmin and while all tables were OK, I did get the following message:

    Problems with indexes of table `modx_site_content`
    The indexes PRIMARY and id seem to be equal and one of them could possibly be removed.


    Thanks in advance for helping provide some direction to fix this.
      • 9930
      • 23 Posts
      When the new DB was created a different password was used, which as I now know, changes the password of the database user and DB undecided

      Updated the config.inc.php to fix the error.