Forum Thread

Programming

mackmack 2 10 November 24, 2015 at 10:46 AM
Hello everyone!

I can not connect to MySQL... getting this MySQL error while trying to access the site and and even while trying to log into administrator.

Database Error: Unable to connect to the database:Could not connect to MySQL

I have tried refreshing and accessing it a dozen times.

Can somebody please help me to restart MySQL?

5 Comments

1

Sign up for a Slickdeals account to remove this ad.

Joined Jan 2006
L10: Grand Master
11,221 Posts
1,465 Reputation
#2
Not based on what you've posted.

Is this through a web-hosts control panel or something?

Do you have access to the server and if so, what is the O/S?
Reply Helpful Comment? 0 0
Heifer whines could be human cries
Closer comes the screaming knife
#3
Not much details provided, but I'm guessing you should have some kind of config file in your site directly that will allow you to enter a DB name, User and Password so that you can connect to your DB (assuming you have a DB set up).
Reply Helpful Comment? 0 0
#4
Quote from mackmack View Post :
Hello everyone!

I can not connect to MySQL... getting this MySQL error while trying to access the site and and even while trying to log into administrator.

Database Error: Unable to connect to the database:Could not connect to MySQL

I have tried refreshing and accessing it a dozen times.

Can somebody please help me to restart MySQL?
-is this one legit?
Reply Helpful Comment? 0 0
Earth 1st! We'll mine the other planets later. Biker

Did you know?

If it can't be grown its gotta be mined
EEK!

The best meal I ever ate was Spotted Owl fried in Exxon Oil! Yumshake head

Expand your horizons. Explore something new. Get a RasberryPi and learn something.
Joined Jul 2009
L10: Grand Master
9,270 Posts
2,201 Reputation
#5
Quote from dale_101798 View Post :
-is this one legit?
Better question is, should the OP allowed to log in to said database?
Reply Helpful Comment? 0 0
#6
Hi;

You can start/stop the mysql service on the server by logging into the server as root from the command line interface and run the following command/s.

service mysql stop
service mysql start
service mysql restart

You can also use the following if the above does not work fine.
Fix Toolbox for MySQL
https://www.fixtoolbox.com/repair...mysql.html
Reply Helpful Comment? 1 0
Page 1 of 1
1
Join the Conversation
Add a Comment
 
Copyright 1999 - 2016. Slickdeals, LLC. All Rights Reserved. Copyright / Infringement Policy  •  Privacy Policy  •  Terms of Service  •  Acceptable Use Policy (Rules)  •  Interest-Based Ads
Link Copied to Clipboard