I'm usually not using Ubuntu, but decided to give it a try today because it's the preferred distro for Windows Subsystem for Linux, that I wanted to try today to see if/how it could replace my VMWare machines on Windows 10.
So I'm using Ubuntu on WSL, although I don't think it makes a difference here.
Anyway, I installed the MySQL APT repo to get MySQL 8.0:
$ wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb$ sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb$ sudo apt-get update$ sudo apt-get install mysql-server
Now when I attempt to start the mysql service, I have no luck:
$ sudo service mysql startmysql: unrecognized service$ sudo service mysqld startmysqld: unrecognized service$ sudo service mysql-server startmysql-server: unrecognized service
A quick look at init.d shows that there is no file for mysql:
$ ls -al /etc/init.d/mysql*ls: cannot access '/etc/init.d/mysql*': No such file or directory
Note that I cannot use systemctl
to start a service, as systemd is not available on WSL.
Now the interesting part: when I list the files inside the mysql-server package, it only contains files in /usr/share
!
$ dpkg-query -L mysql-server/./usr/usr/share/usr/share/doc/usr/share/doc/mysql-server/usr/share/doc/mysql-server/LICENSE.gz/usr/share/doc/mysql-server/README/usr/share/doc/mysql-server/changelog.Debian.gz/usr/share/doc/mysql-server/copyright/usr/share/lintian/usr/share/lintian/overrides/usr/share/lintian/overrides/mysql-server
Why is the mysql-server package missing the actual server files in MySQL APT repo?