Jump to content
MakeWebGames

Recommended Posts

Posted

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?

Posted

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

Posted (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 by lucky3809
Posted

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.

Posted

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..

Posted

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

Posted
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.

Posted (edited)

yeah i've deleted my old database

EDIT: Thanks to everyone for the help i finally got it work. i appreciate it.

Edited by Kr3W
Posted

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. ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...