TeamCity에서는 빌드 및 테스트에 관한 정보를 DB에 저장, 관리한다.
그렇기 때문에 TeamCity 내장 DBMS가 들어가있는데, 성능이 안좋다고 하니,,, MySQL을 설치해 연결해보자.
이번 포스팅에서는 MySQL 설치 및 DB 생성까지만 다룬다.
# 설치
dnf install mysql-server
# 서버 시작
systemctl start mysqld
# 인스턴스 재기동시 mysqld 자동시작할 수 있도록 서비스 등록
systemctl enable mysqld
# 초기 보안 설정
mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
Press y|Y for Yes, any other key for No: y
There are three levels of password validation policy:
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 2
Please set the password for root here.
New password:
Re-enter new password:
Estimated strength of the password: 100
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
- Dropping test database...
Success.
- Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
# mysql 접속 root 계정
mysql -u root -p
# password 입력
# teamcity용 db 생성
create database teamcitydb;
'CI CD > TeamCity' 카테고리의 다른 글
[TeamCity] 5. Build Config (0) | 2022.05.25 |
---|---|
[TeamCity] 4. 프로젝트 추가 (0) | 2022.05.25 |
[TeamCity] 3. 초기 설정 (0) | 2022.05.25 |
[TeamCity] 1. TeamCity 시작 (0) | 2022.05.25 |