Jump to content

Mysql error

Hi I keep getting this error while trying to either configure or even remove mysql-server-8.0 and cant seem to find anything online.

 

Setting up mysql-server-8.0 (8.0.22-0ubuntu0.20.04.3) ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist
dpkg: error processing package mysql-server-8.0 (--configure):
 installed mysql-server-8.0 package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 mysql-server-8.0

Link to comment
Share on other sites

Link to post
Share on other sites

On 1/19/2021 at 5:44 PM, Jeremyy44 said:

Hi I keep getting this error while trying to either configure or even remove mysql-server-8.0 and cant seem to find anything online.

 

Setting up mysql-server-8.0 (8.0.22-0ubuntu0.20.04.3) ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist
dpkg: error processing package mysql-server-8.0 (--configure):
 installed mysql-server-8.0 package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 mysql-server-8.0

Looks like the installation failed. The service isn't loaded because it wasn't "enabled". A service is installed by running systemctl enable <service>

Stopping failed due to not running or not being installed correctly.

 

Have you tried purging the package?

 

(sudo) apt-get purge mysql*

PC Specs - AMD Ryzen 7 5800X3D MSI B550M Mortar - 32GB Corsair Vengeance RGB DDR4-3600 @ CL16 - ASRock RX7800XT 660p 1TBGB & Crucial P5 1TB Fractal Define Mini C CM V750v2 - Windows 11 Pro

 

Link to comment
Share on other sites

Link to post
Share on other sites

8 hours ago, NelizMastr said:

Looks like the installation failed. The service isn't loaded because it wasn't "enabled". A service is installed by running systemctl enable <service>

Stopping failed due to not running or not being installed correctly.

 

Have you tried purging the package?

 

(sudo) apt-get purge mysql*

Thanks for the response and yeah i tried it never worked had to use systemctl to disable it in the end thats what worked out of everything else for idk what reason

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×