sourcecode

MySQL-Server 설치 시 MariaDB 설치를 방지하는 방법

copyscript 2022. 12. 26. 20:32
반응형

MySQL-Server 설치 시 MariaDB 설치를 방지하는 방법

Debian 9 설치에서 MySQL Server를 설치하려고 하는데 apt-get에서 다음 방법으로 이 mariadb-client-10.1을 설치해야 합니다.

sudo apt-get install mysql-server mysql-client

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer     required:
  libmecab2 libtext-template-perl mecab-ipadic mecab-ipadic-utf8 mecab-utils
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
default-mysql-client default-mysql-server mariadb-client-10.1
mariadb-server-10.1
Suggested packages:
mailx mariadb-test netcat-openbsd tinyca
The following NEW packages will be installed:
default-mysql-client default-mysql-server mariadb-client-10.1
mariadb-server-10.1 mysql-client mysql-server
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,748 B/11.2 MB of archives.
After this operation, 125 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ftp.jaist.ac.jp/debian stretch/main amd64 default-mysql-    client all 1.0.2 [3,050 B]
Get:2 http://ftp.jaist.ac.jp/debian stretch/main amd64 mysql-client amd64     5.5.9999+default [1,698 B]
Fetched 4,748 B in 0s (92.8 kB/s)
Preconfiguring packages ...
Selecting previously unselected package mariadb-client-10.1.
(Reading database ... 290851 files and directories currently installed.)
Preparing to unpack .../0-mariadb-client-10.1_10.1.26-0+deb9u1_amd64.deb ...
Unpacking mariadb-client-10.1 (10.1.26-0+deb9u1) ...
Selecting previously unselected package mariadb-server-10.1.
Preparing to unpack .../1-mariadb-server-10.1_10.1.26-0+deb9u1_amd64.deb ...
Unpacking mariadb-server-10.1 (10.1.26-0+deb9u1) ...
Selecting previously unselected package default-mysql-client.
Preparing to unpack .../2-default-mysql-client_1.0.2_all.deb ...
Unpacking default-mysql-client (1.0.2) ...
Selecting previously unselected package default-mysql-server.
Preparing to unpack .../3-default-mysql-server_1.0.2_all.deb ...
Unpacking default-mysql-server (1.0.2) ...
Selecting previously unselected package mysql-client.
Preparing to unpack .../4-mysql-client_5.5.9999+default_amd64.deb ...
Unpacking mysql-client (5.5.9999+default) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../5-mysql-server_5.5.9999+default_amd64.deb ...
Unpacking mysql-server (5.5.9999+default) ...
Setting up mariadb-client-10.1 (10.1.26-0+deb9u1) ...
Processing triggers for menu (2.1.47+b1) ...
Processing triggers for systemd (232-25+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up mariadb-server-10.1 (10.1.26-0+deb9u1) ...
Setting up default-mysql-client (1.0.2) ...
Setting up default-mysql-server (1.0.2) ...
Setting up mysql-server (5.5.9999+default) ...
Setting up mysql-client (5.5.9999+default) ...
Processing triggers for systemd (232-25+deb9u4) ...

MySQL-server만 설치할 수 있는 방법이 있나요?아니면 MariaDB를 설치해야 하나요?잘 부탁드립니다.

http://repo.mysql.com/에 접속하여 버전을 선택합니다.

저는 데비안9이 있기 때문에

wget http://repo.mysql.com/mysql-apt-config_0.8.15-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb

다음에, 무엇을 인스톨 하고 싶은지를 묻습니다.라고 하는군요mysql Server

여기에 이미지 설명 입력

그럼 평소와 같이...

sudo apt update 
sudo apt install mysql-server

나머지는 아마...

언급URL : https://stackoverflow.com/questions/52291143/how-to-prevent-mariadb-to-install-when-installing-mysql-server

반응형