arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Debian-10]mysql-server error
#1
Question 
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...-candidate

Thanks to Post4VPS and Hostlease for their great services.  
#2
https://linuxize.com/post/how-to-install...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.
Thanks to ReadyDedis and Post4VPS for the amazing VPS 7!

#3
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:
apt-get update
apt-get install mariadb-server -y

After that run a basic security setup:
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/
[Image: zHHqO5Q.png]
#4
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.

Thanks to Post4VPS and Hostlease for their great services.  
lockThread Closed 



person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting