aswathm78
By:
aswathm78

Mysql service is not working when trying to install . OS - Ubuntu 16.04 LTS.

December 25, 2016 1.2k views
MySQL Ubuntu 16.04

I started a new vps , tried to install mysql . But it just hanging not working .

Setting up mysql-client-5.7 (5.7.16-0ubuntu0.16.04.1) ...
Setting up mysql-server-core-5.7 (5.7.16-0ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.16-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)

after this line its not working

3 comments
  • What is being recorded in your /var/log/mysql/error.log file? The lines you shared don't indicate any issue but any errors are likely logged there.

  • Hi ryan,

    I had no errors showing . The installation doesnt move to other step. It just stopped in the last line . I waited for a few hours and the issue doesnt resolve .

    When I tried to use dpkg , it showed it was already being used , and killing and restarting dpkg and mysql resulted in error .

    So I deleted the droplet and started a LEMP pack and configured it

    Thanks for the comment
    Aswath KNM

  • Hello! I've had the same issue.
    /var/log/mysql/error.log contains the

    2017-01-25T11:11:11.305184Z 2 [ERROR] 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tHUiHdybEwSS8907#';' at line 1

    I've had a single quote in the password and that was providing me with the error. Reinstalling mySQL completely and choosing another password solved the problem.

Be the first one to answer this question.