반응형

APM설치 두번째로 MySQL 설치과정을 정리한다.

1. MySQL 설치 전 system을 업데이트 한다.

$ sudo apt update && sudo apt upgrade

2. MySQL 설치

$ sudo apt install mysql-server

3. 보안설정

$ sudo mysql_secure_installation

4. 설치 확인

$ sudo mysql -v
Enter the password:
.
.
.
mysql> SELECT VERSION();
--------------
select version()
--------------

+-------------------------+
| version()               |
+-------------------------+
| 5.7.27-0ubuntu0.18.04.1 |
+-------------------------+
1 row in set (0.00 sec)

mysql> exit
Buy

혹은

$ sudo mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 19
Server version: 5.7.27-0ubuntu0.18.04.1 (Ubuntu)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.00 sec)

mysql> exit
Bye

동작하고 있다는 것만 확인하면 되기 때문에 어떤 방법으로든 상관없다.

이것으로 MySQL 설치의 확인을 끝낸다.

Server에 APM설치 02 - MySQL
Server에 APM설치 02 - MySQL

반응형
블로그 이미지

DeveloperN

개발자 n의 개발 이야기(draft)

,