MySQL 5.7.20๋ฒ์ ์ ์ค์นํ๋ ค๊ณ ํ๋ค.
ํ์ง๋ง MySQL ์ฌ์ดํธ์์ ์ํ๋ ํน์ ๋ฒ์ ์ ์ค์นํ๋๊ฒ ์๊ฐ๋ณด๋ค ์ด๋ ต๋ค.
๊ธ์ ์ฐ๋ ๋ ์ง ๊ธฐ์ค์ผ๋ก MySQL์ฌ์ดํธ์์ 5.7๋ฒ์ ์ ์ค์นํ๋ ค๊ณ ํ๋ฉด 5.7.23๋ฒ์ ์ผ๋ก ๋ฐ๋ก ์ฐ๊ฒฐํด์ค๋ค.
5.7.23์ด๋ 5.7.20์ด๋ ํฐ์ฐจ์ด๋ ์์๊ฑฐ๋ค.
ํ์ง๋ง ํน์ ๋ฒ์ ์ด ํ์ํ ์ํฉ์ด ์๋ค.
๊ทธ๋ฆฌ๊ณ ํน์ ๋ฒ์ ์ค์น๋ฅผ ํ ์ค ์๋ค๋ฉด ์๋ฒํ๊ฒฝ์ ์ก๋๋ฐ ํฌ๊ฒ ์๊ฐ ์ ์ฝ์ ํ ์ ์๋ค.
์ค์นํ ๋ฒ์ ์ ์ฐพ๊ธฐ ์ํด
MySQLํํ์ด์ง - DOWNLOADS - Community - MySQL Yum Repository
์๋
A Quick Guide to Using the MySQL Yum Repository ๋งํฌ๋ฅผ ํด๋ฆญํ๋ค.
์คํฌ๋กค์ ๋ด๋ฆฌ๋ค๋ณด๋ฉด Witten the MySQL Yum repository http://repo.mysql.com/yum/
๋งํฌ๋ฅผ ํ๊ณ ๋ค์ด๊ฐ๋ฉด ๋ฏธ๋ฌ์ฌ์ดํธ๊ฐ ์๋ค.
ํ์๋ 5.7.20๋ฒ์ ์ ๋ฐ๊ธฐ ์ํด mysql-5.7-community๋ก ๋ค์ด๊ฐ๋ค.
el๋๋ ํ ๋ฆฌ๋ก ์ ์ฅํ๋ค.
ํ์๋ CentOS 7๋ฒ์ ์ ์ฌ์ฉํด์ 7๋ก ์ ์ฅํ๋ค.
x86_64๋ก ์ ์ฅํ๋ค.
์ด๋ฒ ๋๋ ํ ๋ฆฌ์ MySQL์ ์ค์นํ๊ธฐ ์ํด ํ์ํ ํ์ผ๋ค์ด ์ ๋ถ ์๋ค.
์คํ์ ์ํด ํ์ํ ํ์ผ ์ด 4๊ฐ์ง๋ฅผ ์ค์นํ ๊ฒ์ด๋ค.
mysql-community-common-5.7.20-1.el7.x86_64.rpm
mysql-community-libs-5.7.20-1.el7.x86_64.rpm
mysql-community-client-5.7.20-1.el7.x86_64.rpm
mysql-community-server-5.7.20-1.el7.x86_64.rpm
์ 4๊ฐ์ง ํ์ผ์ ์ฃผ์๋งํฌ๋ฅผ ๋ณต์ฌํ์ฌ wget์ ์ฌ์ฉํด์ ๋ฐ๋๋ค
์ค์น ์์๋ ์๋์ ๊ฐ์ด ํด์ค๋ค.
server ์ client๋ฅผ ๋ฐ์ ๋ common ๊ณผ libs๊ฐ ์ค์น ๋์ด ์์ด์ผํ๋ค.
1 2 3 4 5 | [jamong@localhost dev_util]$ wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-common-5.7.20-1.el7.x86_64.rpm [jamong@localhost dev_util]$ wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-libs-5.7.20-1.el7.x86_64.rpm [jamong@localhost dev_util]$ wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-client-5.7.20-1.el7.x86_64.rpm [jamong@localhost dev_util]$ wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.20-1.el7.x86_64.rpm | cs |
์ด์ ์ค์น๋ ๋๋ฌ๋ค.
์คํ์ด ๋๋์ง ํ์ธํ๋ค.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [jamong@localhost dev_util]$ sudo service mysqld start Redirecting to /bin/systemctl start mysqld.service [jamong@localhost dev_util]$ sudo service mysqld status Redirecting to /bin/systemctl status mysqld.service โ mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: active (running) since ํ 2018-08-25 18:02:05 KST; 10s ago Docs: man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html Process: 24613 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS) Process: 24592 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS) Main PID: 24616 (mysqld) Tasks: 27 CGroup: /system.slice/mysqld.service โโ24616 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid 8์ 25 18:02:04 localhost.localdomain systemd[1]: Starting MySQL Server... 8์ 25 18:02:05 localhost.localdomain systemd[1]: Started MySQL Server. [jamong@localhost dev_util]$ | cs |
์๋น์ค ์คํ์ด ์๋ฃ๋๊ณ root๋ก ์ ์์ ํ๋ ค๊ณ ํ๋๋ฐ... ๋น๋ฐ๋ฒํธ๋ฅผ ์ค์ฅํด์ค ๊ธฐ์ต์ด ์๋ค.
์์๋ก ๋น๋ฐ๋ฒํธ๋ฅผ ๋ฐ๊ณ ๋ณ๊ฒฝํด์ฃผ์ด์ผํ๋ค.
1 2 | [jamong@localhost ~]$ grep 'temporary password' /var/log/mysqld.log 2018-08-25T07:49:59.877196Z 1 [Note] A temporary password is generated for root@localhost: dQ2%oVuWH&N. | cs |
dQ2%oVuWH&N.
๋น๋ฐ๋ฒํธ๋ก ์ ์์ ํ๋ค.
์ ์ํ์ ๋น๋ฐ๋ฒํธ ๋ถํฐ ๋ณ๊ฒฝํด์ค์ผํ๋ค.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | SET PASSWORD = PASSWORD('์๋ก์ด ๋น๋ฐ๋ฒํธ'); ERROR 1819 (HY000): Your password does not satisfy the current policy requirements mysql> SET PASSWORD = PASSWORD('์๋ก์ด ๋น๋ฐ๋ฒํธ'); Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 4 rows in set (0.00 sec) |
๋น๋ฐ๋ฒํธ๋ฅผ ๋ณ๊ฒฝํด์ฃผ๋ ๊ณผ์ ์์ ์๋ฌ๊ฐ ์์ ๊ฐ์ ์๋ฌ๊ฐ ๋๋ค.
์ด๋ ์ง์ ๋ ๋น๋ฐ๋ฒํธ ๊ท์น์ ์ง์ผ์ค์ผํ๋ค.
MySQL Documentation์์ ์์ธํ ๋ด์ฉ ํ์ธ ๊ฐ๋ฅํ๋ค.
๊ธฐ๋ณธ 8์์ด์, ์ซ์, ์๋ฌธ์, ๋๋ฌธ์, ํน์๋ฌธ์ ํฌํจ
5๊ฐ์ง๋ฅผ ์ง์ผ์ ๋น๋ฐ๋ฒํธ๋ฅผ ์ง์ผ์ค๋ค.
์ต์ข ์ผ๋ก ๋ณ๊ฒฝ๋ ๋น๋ฐ๋ฒํธ๋ก ์ ์์ด๋๋์ง ํ์ธํ๋ค.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | [jamong@localhost dev_util]$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.20 MySQL Community Server (GPL) Copyright (c) 2000, 2017, 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> | cs |
MySQL 5.7.20 ์ค์น ์๋ฃ!
๋๊ธ