van_the_man Posted June 2, 2015 Share Posted June 2, 2015 Hello,I'm having a similar problem after upgrading version v5 to v6.0.5. I have received the following when trying to access my homepage:Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'XXXXX'@'localhost' (using password: YES) in /home/XXXXX/public_html/classes/db/mysqli.class.php on line 30Warning: mysqli_options(): Couldn't fetch mysqli in /home/XXXXX/public_html/classes/db/mysqli.class.php on line 32Fatal error: Access denied for user 'XXXXX'@'localhost' (using password: YES) in /home/XXXXX/public_html/classes/db/mysqli.class.php on line 35---My index.php file appears to be fine: <?php/** * CubeCart v6 * ======================================== * CubeCart is a registered trade mark of CubeCart Limited * Copyright CubeCart Limited 2015. All rights reserved. * UK Private Limited Company No. 5323904 * ======================================== * Web: http://www.cubecart.com * Email: [email protected] * License: GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html */require dirname(__FILE__).DIRECTORY_SEPARATOR.'ini.inc.php';define('CC_IN_ADMIN', false);header('X-Frame-Options: SAME-ORIGIN'); // do not allow iframesglobal $config_default;include CC_ROOT_DIR.CC_DS.'controllers'.CC_DS.'controller.index.inc.php';$GLOBALS['smarty']->display('templates/'.$global_template_file); ----Any thoughts? Any help would be appreciated! Many thanks. Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 2, 2015 Share Posted June 2, 2015 Do not copy the contents of the following file in your next reply, but examine the file /includes/global.inc.php and make sure the values for these variables have not changed since CC5:$glob['dbdatabase'] = 'something'; $glob['dbhost'] = 'servername'; $glob['dbpassword'] = 'something'; $glob['dbprefix'] = 'if_used'; $glob['dbusername'] = 'something'; If, when upgrading your CC5 to CC6, you may have chosen to establish a new database -- requiring the telling to the database server that the dbusername/dbpassword is authorized to access this new database. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.