Kr3W Posted June 12, 2011 Share Posted June 12, 2011 I get this error after entering the game information... Write Config... Config written. Attempting DB connection Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'kr3w_1'@'localhost' (using password: YES) in /home/kr3w/public_html/class/class_db_mysql.php on line 48 FATAL ERROR: Could not connect to database on localhost (Access denied for user 'kr3w_1'@'localhost' (using password: YES)) Now i know for a fact the username and pass is correct so why would i get this error? I decided to scrap my game and restart so i deleted all the old files from cpanel and replaced them with the new Redux files... did i do something wrong? Quote Link to comment Share on other sites More sharing options...
galdikas Posted June 12, 2011 Share Posted June 12, 2011 maybe the MySQL server is not "localhost"? Quote Link to comment Share on other sites More sharing options...
Uridium Posted June 12, 2011 Share Posted June 12, 2011 who is your host ? some hosts dont use LOCALHOST example Godaddy use a diff method Quote Link to comment Share on other sites More sharing options...
Wickidnezz Posted June 12, 2011 Share Posted June 12, 2011 yeah illusions godaddy uses something along the lines of "databasename".db.5770834.hostedresource.com mind you ive added the " on each side of database but yeah Kr3W check with your host and make sure its Localhost the use and not something like godaddy simple thing with godaddys way if you don't want to wait for their system to give you the DBHostname connection is go by the database you have created and you should beable to come up with the link like one of my old forums i had a db like con1033707242278 and the link was con1033707242278.db.5770834.hostedresource.com Quote Link to comment Share on other sites More sharing options...
Kr3W Posted June 12, 2011 Author Share Posted June 12, 2011 Well i use hostgator and the last time i installed mccodes localhost worked fine... Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted June 12, 2011 Share Posted June 12, 2011 (edited) set your public_html directory to 755 and your files to 644... all i can think of is the permission is not set right. If your 100% sure that you entered the correct database info... Edited June 12, 2011 by lucky3809 Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted June 12, 2011 Share Posted June 12, 2011 Depending on the host the file still will not be created or written too running the installer with those permissions Lucky. Probably better to do the files at 666 or 777 I would bet your config file is empty meaning the write was not performed. I manually installed redux as the installer is to be honest rubbish. Delete the .htaccess file. Go to cPanel (or your control panel) password protect the Staff folder. Chmod the Staff, Global and Mods directory including all the files to 666 or 777. Edit the installer file on line 231 so it now reads if ( is_writable('./Global') ) { Install. Chmod Staff, Mods, Global directory to 755 and files to 644 or less and your done. Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted June 12, 2011 Share Posted June 12, 2011 well I have always used 755 on directories and 644 on files, even when installing mccodes and have NEVER had a problem, that is why I suggested the settings that way... Quote Link to comment Share on other sites More sharing options...
Danny696 Posted June 12, 2011 Share Posted June 12, 2011 Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'kr3w_1'@'localhost' (using password: YES) in /home/kr3w/public_html/class/class_db_mysql.php on line 48 FATAL ERROR: Could not connect to database on localhost (Access denied for user 'kr3w_1'@'localhost' (using password: YES)) Now i know for a fact the username and pass is correct so why would i get this error? This fact you know is wrong. You get that error because the username annd password have been denied. Are you sure there isnt a space after the password or the username for cpanel actually has _1 in it? Its nothing to do with localhost, as the user is denied.. Quote Link to comment Share on other sites More sharing options...
Uridium Posted June 12, 2011 Share Posted June 12, 2011 Only thing i can suggest is if you have an old Version of MCC try installnig that if that works then its a redux problem you may even be able to install using the old installer.php from the MCv2 version BUT DONT QUOTE ME ive never tried it Quote Link to comment Share on other sites More sharing options...
mixmaster Posted June 12, 2011 Share Posted June 12, 2011 sorry if im wrong but have you deleted your old database from your old mc game and made a new one with the readux sql's ? maybe that is the problem ? Quote Link to comment Share on other sites More sharing options...
Kr3W Posted June 12, 2011 Author Share Posted June 12, 2011 This fact you know is wrong. You get that error because the username annd password have been denied. Are you sure there isnt a space after the password or the username for cpanel actually has _1 in it? Its nothing to do with localhost, as the user is denied.. my user and pass is correct i keep changing it as well to just check it and nothing works i keep getting the same error. Quote Link to comment Share on other sites More sharing options...
Kr3W Posted June 12, 2011 Author Share Posted June 12, 2011 (edited) yeah i've deleted my old database EDIT: Thanks to everyone for the help i finally got it work. i appreciate it. Edited June 12, 2011 by Kr3W Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted June 12, 2011 Share Posted June 12, 2011 (edited) nevermind u fixed it Edited June 12, 2011 by lucky3809 Quote Link to comment Share on other sites More sharing options...
Uridium Posted June 12, 2011 Share Posted June 12, 2011 Kr3W care to share how you finally got it working incase this happens to others :) Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted June 12, 2011 Share Posted June 12, 2011 probably what danny told him and i tried telling him last night the same thing in mail... Quote Link to comment Share on other sites More sharing options...
Kr3W Posted June 12, 2011 Author Share Posted June 12, 2011 Um no actually i just finally deleted all the files on my cpanel and reuploaded them. Worked like a charm after that, with the SAME exact user, pass, and DB i was using. ;) 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.