[Debian-10]mysql-server error - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion) +--- Forum: VPS Support (https://post4vps.com/Forum-VPS-Support) +--- Thread: [Debian-10]mysql-server error (/Thread-Debian-10-mysql-server-error) |
[Debian-10]mysql-server error - Rehan - 11-25-2020 Hi friends, I have recently started using Debian. Today while installing mysql-server i found that mysql-server package is not available. i updated the packages with apt-get update and upgraded. But its still showing me not found. I searched on google and found a link. But none of it works. What's the reason behind this? is there any other way to install it? Here is the link i found after searching https://unix.stackexchange.com/questions/270872/install-mysql-has-no-installation-candidate RE: [Debian-10]mysql-server error - sAmI - 11-25-2020 https://linuxize.com/post/how-to-install-mysql-on-debian-10/ I found the above link and checked many tutorials in every tutorial you see there is a MYSQL Repository you need to install before doing "apt install mysql mysql-server. wget http://repo.mysql.com/mysql-apt-config_0.8.13-1_all.deb sudo apt install ./mysql-apt-config_0.8.13-1_all.deb apt-get install mysql mysql-server Try this above and tell me whats the result of this! And maybe try installing mariadb-server and see if that helps! Regards, sAmI. RE: [Debian-10]mysql-server error - Mashiro - 11-25-2020 MySQL, as in the real MySQL, has been deprecated in many Linux distributions due to a license model change from years ago. Instead of MySQL many Linux distributions provide the free alternative MariaDB. MariaDB is 100% compatible with MySQL. The latest MariaDB 10.5.x branch is basically like MySQL 8. Debian 10 comes with MariaDB 10.3.25 (current latest version in the repository). MariaDB 10.3.x branch is still a current and maintained MariaDB version based on a older MySQL version. Although the latest 10.3.x release is 10.3.27. However Debian is always a few version behind because they test packages very carefully for functionality, security and stability. So nothing to worry about even if the version is a bit older than the latest from MariaDB directly. "mysql" and "mysql-server" used to be meta alias packages for MariaDB in previous versions. So if you would use these names it would actually always install MariaDB. Even the MySQL service commands would literally just do operations on the actual MariaDB service. This probably has also been deprecated because the transition time from MySQL to MariaDB or other databases has been on for enough time already (far longer than 2 years already). You can install MariaDB easily with the commands below: Code: apt-get update After that run a basic security setup: Code: mysql_secure_installation If you need the real MySQL you can, under your own risk, use their MySQL 8 Community Server packages. Working tutorial: https://www.tecmint.com/install-mysql-on-debian-10/ RE: [Debian-10]mysql-server error - Rehan - 11-27-2020 Thank you @sAmI and Hidden for your reply. Sami your method works, after adding the repository i am able to install it. But now i am going to try MariaDB as Hidden recommended this. |