Question

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

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

Subscribe
Share

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.

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

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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @Edwinna:

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.

View the original comment