cromono / cromono

https://cronmonitor.atlassian.net/wiki/spaces/DOCUMENTAT/overview
0 stars 0 forks source link

MySQL 연동 #34

Closed copolio closed 3 years ago

copolio commented 3 years ago

In GitLab by @gm2202985 on Jun 7, 2021, 14:15

Version

Server

Application.yml

IntelliJ Database 사용법

  1. 우측의 Database를 선택한다. Database_img
  2. '+' 버튼을 누르고 DataSource에서 MySQL을 클릭한다. Mysql_img
  3. 원하는 IP, Port 번호, User id, password를 입력한다.
  4. URL에 ?serverTimezone=UTC를 추가한다. (그림 참고) mysql_setting

MySQL 설치 방법 (Centos OS )

  1. MySQL 설치
    yum -y install http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
    yum -y install mysql-community-server
  2. MySQL 실행 후 임시 비밀번호 확인
    systemctl start mysqld
    vi /var/log/mysqld.log
  3. MySQL 실행
    mysql -u root -p
  4. 비밀번호 변경
    ALTER USER 'root'@'localhost' IDENTIFIED BY 'password'
  5. 외부 접속 권한 부여
    use mysql
    grant all privileges on *.* to 'root'@'%' identified by 'password'
    (모든 IP가 접속 가능하게 하려면 %, 특정 IP만 허용하려면 '%'에 'IP'를 입력하면 된다.)

참고

copolio commented 3 years ago

In GitLab by @gm2202985 on Jun 7, 2021, 14:38

changed the description

copolio commented 3 years ago

In GitLab by @gm2202985 on Jun 7, 2021, 14:53

changed the description

copolio commented 3 years ago

In GitLab by @gm2202985 on Jun 7, 2021, 15:35

changed the description

copolio commented 3 years ago

In GitLab by @gm2202985 on Jun 7, 2021, 16:15

mentioned in merge request !6

copolio commented 3 years ago

In GitLab by @gm2202985 on Jun 7, 2021, 16:22

changed the description

copolio commented 3 years ago

In GitLab by @gm2202985 on Jun 8, 2021, 14:03

assigned to @gm2202985