MyBB Community Forums

Full Version: After the forum got Hacked!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all,
My forum was hacked yesterday!! after contacting the hosting support, I got back to access my account.

I gave them full backup made in 19-2-2011, they split all the files in there correct places.

I changed the Cpanel PW and that of config.php to get matched but I'm still getting the same error:
SQL Error:
1045 - Access denied for user 'mhhautoc'@'209.190.61.15' (using password: YES)
Query:
[READ] Unable to connect to MySQL server

What I have to do now??

Thank you all in advance!
Sad
The database user's password is incorrect.
(2011-03-03, 05:13 PM)Derek M. Wrote: [ -> ]The database user's password is incorrect.

Thanks mate,

I assure to you that Cpanel and config.php file have matched username and password.

I tried several times with different matched un's and pw's and still not able....

Then???

Best regards.

Hosting support replied as this:

Hi there,

1: Please can you log into your cPanel and click MySQL databases.

2: Then create a MySQL user and define a password.

3: Then assign that user to your database that your using for your script.

4: Then choose the privledges you want to assign that user to have.

5: Then edit your scripts config file and update the script to use the new DB user and password.


Best regards

Step 1-2 understand.
could some one explain to me 3-4-5 in simple way?

Thanks in advance
3) in your cpanel mysql databases page, you will see a section about 2/3 the way down that says "Add User To Database". there you pick th enew user you created and pick the existing forum database

4) when you do 3), you will get a new window asking for privileges. I usually grant all permissions, but you can uncheck 'references" and "create routines" usually wihtout nay issues.

5) that means edit config.php and change the two lines that include database username and database password
3 - Assign the user you just made to the forum's database.
4 - Give him full permissions
5 - Update ./inc/config.php to have his info.
Thank you all for being helpful.

I created new UN: RABIH and set password to xxxxxxxxxx and I gave him full privilege. see attached.

I went to config.php and I made this:
$config['database']['username'] = 'mhhautoc_RABIH';
$config['database']['password'] = 'xxxxxxxxxx';

Also the Cpanel is same pw: xxxxxxxxxx

and still same error??

SQL Error:
1045 - Access denied for user 'mhhautoc_RABIH'@'209.190.61.15' (using password: YES)
Query:
[READ] Unable to connect to MySQL server




HuhHuhHuh

Is the database name correct in .inc/config.php?

Also, did your webhost tell you this is the ip you need to use?

209.190.61.15
(2011-03-03, 06:12 PM)Derek M. Wrote: [ -> ]Is the database name correct in .inc/config.php?

Also, did your webhost tell you this is the ip you need to use?

209.190.61.15

the name as I showed in .inc/config.php is :
$config['database']['username'] = 'mhhautoc_RABIH';
$config['database']['password'] = 'xxxxxxxxxx';

It matches the same name and password created in Cpanel for the DataBase.


The web hosting email shows this: Server IP: 209.190.61.15





Pages: 1 2