FATAL Error cant connect to database.....

Started by ɔɔɔɔɔɔuɥoɾ, September 21, 2009, 03:21:05 PM

Previous topic - Next topic

ɔɔɔɔɔɔuɥoɾ

FATAL ERROR: Connection to database server failed.
MYSQL Error:Access denied for user 'user for this da'@'localhost' (using password: YES)

Im getting the above error.

I can access the database remotely also on phpmyadmin.

I have checked settings.php all login information is correct.

The only thing I have done today was add a file sharing service on a sub domain in a different folder, not touching the forum dir.

I have contacted support, but they take ages, maybe someone here could help me faster, Im assuming its a server issue as I have not changed anything and this suddenly happened.

All files appear to be in place, all database seems to be intact, I have not got a clue why this is happening.


EDIT:
I even ran repair settings php and that says connection to database is good ????


This confuses me
MYSQL Error:Access denied for user 'user for this da'@'localhost' (using password: YES)
That is not the username specified in settings.php
Thanks in Advanced!


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

JBlaze

It's saying that db user "user for this da" cannot connect to the database. Are you sure that is the name of the db user for your database? To me, it looks like a stock user that is used in stock config files.
Jason Clemons
Former Team Member 2009 - 2012

ɔɔɔɔɔɔuɥoɾ



SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

ɔɔɔɔɔɔuɥoɾ

#3
OK

I found something out. [config.php]

I looked at config.sys it is

<?
$sql_host="localhost";
$sql_database="your database name";
$sql_user="user for this database";
$sql_pass="password for this user";

Im assuming that user for this database could be an issue

I changed that to the user and password temp and i got a bunch of errors then i replaced backup

Is there supposed to be any config.php file?

I dont see one in the download package


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

ɔɔɔɔɔɔuɥoɾ

OMG, I messes around with some files and finally got it, something had messed up index.php and added a config file and a bunch of other things Im gonna have to remove

I got the backup from "index.php~"

phew..


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Advertisement: