1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hi Guest, welcome to the TES Community!

    Connect with like-minded education professionals and have your say on the issues that matter to you.

    Don't forget to look at the how to guide.

    Dismiss Notice

Could not connect to MySQL

Discussion in 'Computing and ICT' started by 19Lyons, Mar 2, 2016.

  1. 19Lyons

    19Lyons New commenter

    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?
     
  2. Corte

    Corte New commenter

    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
     

Share This Page