Members
  • Total Members: 12811
  • Latest: nodrog
Stats
  • Total Posts: 28507
  • Total Topics: 8238
  • Online Today: 852
  • Online Ever: 51419
  • (01. January 2010., 10:27:49)












Author Topic: Could not connect to MySQL  (Read 970 times)

0 Members and 1 Guest are viewing this topic.

jeremybryan279

  • SCF Newbie
  • *
  • Posts: 1
  • KARMA: 0
  • Gender: Male
Could not connect to MySQL
« on: 09. October 2015., 19:39:36 »

I am 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?

Samker's Computer Forum - SCforum.info

Could not connect to MySQL
« on: 09. October 2015., 19:39:36 »




jheysen

  • SCF Global Moderator
  • *****
  • Posts: 751
  • KARMA: 100
  • Gender: Male
Re: Could not connect to MySQL
« Reply #1 on: 10. October 2015., 04:07:42 »

I am 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?
Are you sure you are using the right URL in your site?

Samker

  • SCF Administrator
  • *****
  • Posts: 7206
  • KARMA: 291
  • Gender: Male
  • Whatever doesn't kill us makes us stronger.
    • SCforum.info - Samker's Computer Forum
---

...even while trying to log into administrator.

---

Maybe you have problem with your Hosting server (not with SQL base)?

Also, provide us URL of your site.

valderrama-m8

  • SCF Newbie
  • *
  • Posts: 1
  • KARMA: 0
  • Gender: Male
Re: Could not connect to MySQL
« Reply #3 on: 18. October 2015., 19:21:59 »
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/repairtoolformysql.html

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
Second Anti-Bot trap, type or simply copy-paste below (only the red letters):www.scforum.info:

Enter your email address to receive daily email with 'SCforum.info - Samker's Computer Forum' newest content:

Terms of Use | Privacy Policy | Advertising