
Now type the root password for your MySQL installation and choose OK. Make a note of the password because youll. To install the MySQL Server 8.0 to the Debian system, run the apt command below. Now, run the following command to install MariaDB 10.6 on Debian 11. During the install, youll be prompted to create a password for the MySQL root user. You can also type manually (as root): service mysql start After an upgrade of the Debian package you might need to run (as root): mysqlfixprivilegetables. MySql Server MySql will start on boot time.



Step 1: Add MySQL Dev apt repository MySQL 8.0 packages are available on official MySQL Dev apt repository. Install the packages mysql-server and mysql-client (which depends on the current 'best' version of mysql). Apt install ca-certificates apt-transport-https lsb-release gnupg curl nano unzip -yĬurl -fsSL -o /usr/share/keyrings/php-archive-keyring.gpgĮcho "deb $(lsb_release -sc) main" > /etc/apt//php.listĪpt update & apt install php8.0 php8.0-cli php8.0-common php8.0-curl php8.0-gd php8.0-intl php8.0-mbstring php8.0-mysql php8.0-opcache php8.0-readline php8.0-xml php8.0-xsl php8.0-zip php8.0-bz2 libapache2-mod-php8.0 -yĪpt install mariadb-server mariadb-client -yĬhmod -R 0755 phpmyadmin & nano /etc/apache2/conf-available/phpmyadmin. Step 3 Install MariaDB 10.6 on Debian 11. Follow steps below to Install MySQL 8.0 on Debian 11/10/9 Linux system.
