The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Feb 29, 2012 6:12 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jan 25, 2012 8:12 am
Posts: 6
Help..my site is show random error message

"Database connection error (2): Could not connect to MySQL."

before that, the site is show nothing and work good

i had check my configuration.php and everything its ok

anyone can help me?please.. :(


Top
 Profile  
 
PostPosted: Wed Feb 29, 2012 6:19 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Fri Aug 21, 2009 12:40 pm
Posts: 89
Location: New Delhi, India
Check with your server provider - it seems that MySQL server was down at that time.

_________________
Manish Mittal
Skype: manish.osuniverse
http://www.OpenSourceTechnologies.com - Joomla, PHP/MySQL Expert. Contact Us for your Open Source Projects.


Top
 Profile  
 
PostPosted: Wed Feb 29, 2012 12:26 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jan 25, 2012 8:12 am
Posts: 6
thanks OSTecnologies..
they say the mysql server is run..
i found some injection to my site.. the report from Marco's SQL Injection - LFI Interceptor Plugin

** Local File Inclusion [GET:option] => ../../../../../../../../../../../../../../../../proc/self/environ
** Local File Inclusion [REQUEST:option] => ../../../../../../../../../../../../../../../../proc/self/environ

**PAGE / SERVER INFO


*REMOTE_ADDR :
188.83.139.33

*HTTP_USER_AGENT :
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

*REQUEST_METHOD :
GET

*QUERY_STRING :
option=../../../../../../../../../../../../../../../../proc/self/environ



** SUPERGLOBALS DUMP (sanitized)


*$_GET DUMP
-[option] => proc/self/environ


*$_POST DUMP


*$_COOKIE DUMP


*$_REQUEST DUMP
-[option] => proc/self/environ

is this injection make my mysql disconnected?


Top
 Profile  
 
PostPosted: Wed Feb 29, 2012 12:49 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jan 25, 2012 8:12 am
Posts: 6
and another message is

** Local File Inclusion [GET:amp;fontstyle] => ../../../../../../../../../../../../../../../../etc/passwd
** Local File Inclusion [REQUEST:amp;fontstyle] => ../../../../../../../../../../../../../../../../etc/passwd

**PAGE / SERVER INFO


*REMOTE_ADDR :
190.201.200.138

*HTTP_USER_AGENT :
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

*REQUEST_METHOD :
GET

*QUERY_STRING :
option=com_content&amp;task=view&amp;id=29&amp;Itemid=97&amp;month=6&amp;year=2008&amp;lang=en&amp;fontstyle=../../../../../../../../../../../../../../../../etc/passwd



** SUPERGLOBALS DUMP (sanitized)


*$_GET DUMP
-[option] => com_content
-[amp;task] => view
-[amp;id] => 29
-[amp;Itemid] => 97
-[amp;month] => 6
-[amp;year] => 2008
-[amp;lang] => en
-[amp;fontstyle] => etc/passwd


*$_POST DUMP


*$_COOKIE DUMP


*$_REQUEST DUMP
-[option] => com_content
-[amp;task] => view
-[amp;id] => 29
-[amp;Itemid] => 97
-[amp;month] => 6
-[amp;year] => 2008
-[amp;lang] => en
-[amp;fontstyle] => etc/passwd


Top
 Profile  
 
PostPosted: Thu Mar 01, 2012 1:46 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Dec 08, 2011 9:03 am
Posts: 23
One of the reason for such kind of error is wrong database information in configuration.php file such as:

Code:
public $dbtype = 'mysqli';
public $host = 'localhost';
public $user = 'root';
public $password = 'root';
public $db = 'test';
public $dbprefix = 'testdb_';


Check the database information such as host ,user ,password ,db ,dbprefix are correct.
You can check it in phpmyadmin.

For example if you provide wrong password above you will get this error.


Top
 Profile  
 
PostPosted: Thu Mar 08, 2012 11:56 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Feb 02, 2012 5:04 pm
Posts: 12
The password reset thing in configuration.php did it for me. Thanks all.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 40 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group