![]() ![]() Please share this post with your friends and join our Telegram channel. All thanks to the official MySQL repository for Debian 10. However, in this post, I have shown you how to install it without problems. :~$ mysql -versionĭespite having one of the largest repositories in all of Linux, Debian does not have MySQL by default. This way, you can have a more secure instance. Now, you can secure the new installation using the mysql_secure_installation script.ĩ.- Using the mysql_secure_installation scriptĪs you can see in the image, there you will be asked some questions that will help to configure the new installation. Next, select the default authentication plugin: When the installation is finished, we will be asked for the new root user key. Now, we can install MySQL on Debian 10 by running the following commands. In the end, you will see a screen output similar to this one. The default configuration is pretty good, so just scroll down and press OK.Ĥ.- Adding the MySQL repository on Debian 10 :~$ sudo dpkg -i mysql-apt-config_0.8.13-1_all.debĪt the time of installing the package, we will be asked to configure the available packages and repositories. Now, you can install the package to add the MySQL repository. That package we just downloaded requires GNUPG as a dependency. First, download the DEB package that adds it using wget. But just add a repository to make it available. If you open a terminal session and use APT to search for the MySQL package in the official repositories, you will have this screen output:Īs you can see, MySQL is not available on Debian 10. But we can install it without major problems. In the same order of ideas, Debian has a fair community philosophy and has decided not to include MySQL by default. Then, we can say that although MariaDB is perfectly usable and compatible with MySQL many companies still prefer the support of this program. Something that still makes it powerful in the business segment. On the other hand, MySQL has a version dedicated to companies that add professional support. There are no big differences between the two. Then, a MySQL fork called MariaDB was made. Well, actually by the company that bought it that is Oracle. ![]() This is due to a change of ownership and philosophy on the part of MySQL. Why MySQL is not on the official repository? In this post, you will learn how to install MySQL on Debian 10. ![]() In the case of data, there are many database handlers available in the official Debian repositories, but one MySQL is missing. On the other hand, because of this many developers and administrators of networks and systems rely on Debian to serve their data to the rest of the users. But the two characteristics that make Debian a popular system are the stability and a large number of packages available to install. However, it is also used by a large number of people as an operating system on their desktop computer. Type "help", "copyright", "credits" or "license" for more information.Taskset Cheatsheet | Pandoc Cheatsheet | Curl Cheatsheet | Grep CheatSheet | Cron CheatSheet | Grep CheatSheet | More!ĭebian is a fairly popular operating system for servers. Setting up python-mysqldb (1.3.7-1.1) python Processing triggers for libc-bin (2.24-11+deb9u3). Update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode Selecting previously unselected package python-mysqldb. Selecting previously unselected package libmariadbclient18:amd64. 13223 files and directories currently installed.) Selecting previously unselected package mysql-common. Get:3 stretch/main amd64 python-mysqldb amd64 1.3.7-1.1 ĭebconf: delaying package configuration, since apt-utils is not installed Get:2 stretch/main amd64 libmariadbclient18 amd64 10.1.38-0+deb9u1 Get:1 stretch/main amd64 mysql-common all 5.8+1.0.2 Libmariadbclient18 mysql-common python-mysqldbĠ upgraded, 3 newly installed, 0 to remove and 29 not upgraded.Īfter this operation, 4611 kB of additional disk space will be used. The following NEW packages will be installed: The following additional packages will be installed:ĭefault-mysql-server | virtual-mysql-server python-egenix-mxdatetime python-mysqldb-dbg Run the included mysqlsecureinstallation security script to restrict access to the server. The package also pulls in related tools to interact with MariaDB. Install the mariadb-server package using apt. Actually, follow T's answer doesn't work for me, i try apt-get install python-mysqldb work for me apt-get install python-mysqldb The short version of this installation guide consists of these three steps: Update your package index using apt. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |