This topic is locked
[SOLVED]

 Fatal error: Access denied for user 'root'@'localhost' (using password: YES) in /home/userid/public_html/connections/MySQLConnection.php on line 83

1/11/2015 3:59:52 PM
PHPRunner General questions
P
procheck author

I just converted my version 7 application to version 8 and I get a connect error. It works fine in version

7 so this verified that my configuration is correct. I changed MySQLConnection to MySQLiConnection as shown

below and my login screen is displayed but the error returns when I login.
Has something changed in version 8? (I still have this - $useOldMysqlLib = false;)
Thanks

Al
protected function getConnection( $connId )

{

include_once getabspath("connections/Connection.php");
$data = $this->_connectionsData[ $connId ];

switch( $data["connStringType"] )

{

case "mysql":

if( useMySQLiLib() )

{

include_once getabspath("connections/MySQLiConnection.php");

return new MySQLiConnection( $data );

}
include_once getabspath("connections/MySQLiConnection.php");

return new MySQLiConnection( $data );

Admin 1/12/2015

According to the error message MySQL username or password are incorrect? Do you use any custom connection code somewhere in your events?
Also I believe it's safe to remove $useOldMysqlLib = false;

P
procheck author 1/12/2015

That's how it would appear but all I did was take version 7 and renamed it to version 8 and recompiled it and did a full refresh. It does work locally so maybe I'll try deleting all the file on my website and uploading them again.

P
procheck author 1/13/2015

I was able to get it to connect by deleting all of the previous version and uploading the files again. For some reason, a full refresh didn't work.