CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2015
    Posts
    1

    Could not connect to MySQL

    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. #2
    Join Date
    Dec 2015
    Posts
    1

    Re: Could not connect to MySQL

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured