By azadavsar
mysql version like this
mysql -V mysql Ver 15.1 Distrib 10.1.44-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
I want to start mysql.service
systemctl start mysql.service Failed to start mysql.service: Unit mysql.service not found.
service mysql start Failed to start mysql.service: Unit mysql.service not found.
apt-get install mysql-server Reading package lists… Done Building dependency tree Reading state information… Done You might want to run ‘apt --fix-broken install’ to correct these. The following packages have unmet dependencies: mariadb-server : Depends: mariadb-server-10.1 (>= 1:10.1.44-0ubuntu0.18.04.1) but it is not going to be installed mysql-server-5.7 : Depends: mysql-client-5.7 (>= 5.7.31-0ubuntu0.18.04.1) but it is not going to be installed Depends: mysql-server-core-5.7 (= 5.7.31-0ubuntu0.18.04.1) but it is not going to be installed Depends: libevent-core-2.1-6 (>= 2.1.8-stable) but it is not going to be installed E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
This textbox defaults to using Markdown to format your 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.
Hi there @azadavsar,
If you already have MariaDB installed you should not really install MySQL.
You could start MariaDB with the following command:
- sudo systemctl start mariadb
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
