Z
Z
Zimaell2020-08-24 20:56:01
MySQL
Zimaell, 2020-08-24 20:56:01

How to solve mysql reinstall problem?

I haven't tried it yet, it always throws an error.

2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.7 (5.7.31-0ubuntu0.16.04.1) ...
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'screen -cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
mysql_upgrade: [ERROR] 1243: Unknown prepared statement handler (stmt) given to EXECUTE
mysql_upgrade failed with exit status 5
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql -server-5.7; however:
Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-5.7
mysql-server

climbed the forums and advised to do so
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get dist-upgrade
sudo apt-get install mysql-server

but the same error pops up, I don't know what to do anymore...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Official account of the Timeweb team, 2020-09-17
@timeweb_team

The same issue was addressed here:
https://askubuntu.com/questions/795467/ubuntu-16-0...
try also all options from there

T
teet, 2015-06-17
@teet

For high loads it is better to use nginx+php-fpm:
https://www.digitalocean.com/community/tutorials/h...
and you can try this script:
mysqltuner.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question