Members
  • Total Members: 14176
  • Latest: toxxxa
Stats
  • Total Posts: 42952
  • Total Topics: 16150
  • Online Today: 4651
  • Online Ever: 51419
  • (01. January 2010., 10:27:49)









Author Topic: Could not connect to MySQL  (Read 3973 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: 879
  • KARMA: 121
  • 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: 7528
  • KARMA: 322
  • 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

Samker's Computer Forum - SCforum.info

Re: Could not connect to MySQL
« Reply #3 on: 18. October 2015., 19:21:59 »

 

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