I tried to update MySQL 5.7.21 to MySQL 8.0 using the following commands
wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server
But the installation step results in an error that says
systemd[1]: Starting MySQL Community Server...
systemd[15390]: mysql.service: Failed at step EXEC spawning /usr/share/mysql/mysql-systemd-start: No such file or directory
systemd[1]: mysql.service: Control process exited, code=exited status=203
systemd[1]: Failed to start MySQL Community Server.
systemd[1]: mysql.service: Unit entered failed state.
systemd[1]: mysql.service: Failed with result 'exit-code'.
systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
systemd[1]: Stopped MySQL Community Server.
systemd[1]: Starting MySQL Community Server...
systemd[15399]: mysql.service: Failed at step EXEC spawning /usr/share/mysql/mysql-systemd-start: No such file or directory
systemd[1]: mysql.service: Control process exited, code=exited status=203
systemd[1]: Failed to start MySQL Community Server.
systemd[1]: mysql.service: Unit entered failed state.
systemd[1]: mysql.service: Failed with result 'exit-code'.
systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
systemd[1]: Stopped MySQL Community Server.
systemd[1]: Starting MySQL Community Server...
systemd[15424]: mysql.service: Failed at step EXEC spawning /usr/share/mysql/mysql-systemd-start: No such file or directory
systemd[1]: mysql.service: Control process exited, code=exited status=203
systemd[1]: Failed to start MySQL Community Server.
systemd[1]: mysql.service: Unit entered failed state.
systemd[1]: mysql.service: Failed with result 'exit-code'.
systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
systemd[1]: Stopped MySQL Community Server.
I am really not sure where I can find this file mysql-systemd-start
as when I look in /usr/share/mysql/
the directory doesn't exist!
Thanks for the help.