우분투 MySQL 클라이언트 설치

Jmnote (토론 | 기여)님의 2017년 5월 14일 (일) 02:01 판 (→‎확인 2)
  다른 뜻에 대해서는 우분투 MySQL 서버 설치 문서를 참조하십시오.
  다른 뜻에 대해서는 CentOS MySQL 클라이언트 설치 문서를 참조하십시오.
우분투 MySQL 클라이언트 설치
우분투 mysql-client-core 설치

1 확인

root@ubuntu14:~# mysql -V
The program 'mysql' can be found in the following packages:
 * mysql-client-core-5.5
 * mariadb-client-core-5.5
 * mysql-client-core-5.6
 * percona-xtradb-cluster-client-5.5
Try: apt-get install <selected package>
root@ubuntu16:~# mysql -V
-bash: mysql: command not found

2 설치

# ubuntu14
apt-get install mysql-client-core-5.6
# ubuntu16
apt-get install mysql-client
root@ubuntu16:~# apt-get install mysql-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libaio1 libnuma1 mysql-client-5.7 mysql-client-core-5.7 mysql-common
The following NEW packages will be installed:
  libaio1 libnuma1 mysql-client mysql-client-5.7 mysql-client-core-5.7 mysql-common
0 upgraded, 6 newly installed, 0 to remove and 37 not upgraded.
Need to get 8,118 kB of archives.
After this operation, 65.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 libnuma1 amd64 2.0.11-1ubuntu1 [21.0 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 libaio1 amd64 0.3.110-2 [6,356 B]
Get:3 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-client-core-5.7 amd64 5.7.18-0ubuntu0.16.04.1 [6,340 kB]
... (생략)
Setting up mysql-client-5.7 (5.7.18-0ubuntu0.16.04.1) ...
Setting up mysql-client (5.7.18-0ubuntu0.16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...

3 확인 2

root@ubuntu14:~# mysql -V
mysql  Ver 14.14 Distrib 5.6.28, for debian-linux-gnu (x86_64) using  EditLine wrapper
root@ubuntu16:~# mysql -V
mysql  Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using  EditLine wrapper

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}