[MYSQL] Error The slave I/O thread stops because master and slave have equal MySQL server UUIDs
-오류
Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs;
these UUIDs must be different for replication to work -
- auto.cnf 삭제 후 재기동
'Progamming > DB' 카테고리의 다른 글
[MYSQL] Error caching_sha2_password (0) | 2022.05.19 |
---|---|
[MYSQL] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (0) | 2022.05.19 |
Mysql Base64 encode/decode (0) | 2022.04.04 |
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
[MYSQL] Error caching_sha2_password
- plugin 조회
SELECT Host,User,plugin,authentication_string FROM mysql.user where User ='root'\G
- User 변경
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'test';
'Progamming > DB' 카테고리의 다른 글
[MYSQL] Error The slave I/O thread stops because master and slave have equal MySQL server UUIDs (0) | 2022.05.19 |
---|---|
[MYSQL] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (0) | 2022.05.19 |
Mysql Base64 encode/decode (0) | 2022.04.04 |
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
[MYSQL] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- 소켓위치 찾기
/mysql/bin/mysql_config --socket
- 심볼릭링크
ln -s /mysql/mysql.sock /tmp/mysql.sock
'Progamming > DB' 카테고리의 다른 글
[MYSQL] Error The slave I/O thread stops because master and slave have equal MySQL server UUIDs (0) | 2022.05.19 |
---|---|
[MYSQL] Error caching_sha2_password (0) | 2022.05.19 |
Mysql Base64 encode/decode (0) | 2022.04.04 |
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
Mysql Base64 encode/decode
TO_BASE64() : Return the argument converted to a base-64 string
FROM_BASE64() : Decode base64 encoded string and return result
-----------------------------------------------------
1. SELECT TO_BASE64('abc') encodeStr, convert(FROM_BASE64(TO_BASE64('abc'))) decodeStr;
2. 로그인 mysql -uroot -p --skip-binary-as-hex
SELECT TO_BASE64('abc') encodeStr, FROM_BASE64(TO_BASE64('abc')) decodeStr;
'Progamming > DB' 카테고리의 다른 글
[MYSQL] Error caching_sha2_password (0) | 2022.05.19 |
---|---|
[MYSQL] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (0) | 2022.05.19 |
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
MSSQL 로그 사이즈 줄이기 (0) | 2015.04.17 |
MYSQL my.cnf 설정 가이드
항목 | 기본 값 | 비고 |
user | mysql | 기동 유저 |
basedir | /usr | 기본 경로 |
datadir | /var/lib/mysql | 데이터 경로 |
log-error | /var/log/mysqld.log | 에러 로그 경로 |
pid-file | /var/run/mysqld/mysqld.pid | PID 파일 경로 |
socket | /var/lib/mysql/mysql.sock | 소켓 파일 경로 |
server-id | #server-id=1 | Cluster 설정 시 주석 제거 node 1번 |
server-id | #server-id=2 | Cluster 설정 시 주석 제거 node 2번 |
log-bin | #log-bin=/var/lib/mysql/ssgbin-log | Cluster 설정 시 주석 제거 |
log-bin | #log_bin_trust_function_creators=1 | Cluster 설정 시 주석 제거 |
log-slave-updates | #log-slave-updates | Cluster 설정 시 주석 제거 |
relay-log | /var/lib/mysql/ssgrelay-bin | relay-log |
relay-log-index | /var/lib/mysql/ssgrelay-bin.index | relay-log |
innodb_data_file_path | ibdata:100M:autoextend:max:15776M | MySQL 5.5 이하 버전에서 튜닝 항목 ibdata:100M:autoextend:max:15776M innodb 부족한 경우 늘려줄 것 |
slow_query_log | 1 | |
slow-query-log-file | /var/lib/mysql/slowquery.log | 설정 없음 추가해줘야 함 |
long_query_time | 10 | 설정 없음 추가해줘야 함 |
max_connections | 2625 | set larger connection limit |
'Progamming > DB' 카테고리의 다른 글
[MYSQL] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (0) | 2022.05.19 |
---|---|
Mysql Base64 encode/decode (0) | 2022.04.04 |
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
MSSQL 로그 사이즈 줄이기 (0) | 2015.04.17 |
MS-SQL 검색결과 제한하기 (0) | 2015.04.06 |
MYSQL 컬럼 구조 조회
1. select column_name from information_schema.columns where table_name ='테이블 명';
2. show create table 테이블명\G;
'Progamming > DB' 카테고리의 다른 글
Mysql Base64 encode/decode (0) | 2022.04.04 |
---|---|
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
MSSQL 로그 사이즈 줄이기 (0) | 2015.04.17 |
MS-SQL 검색결과 제한하기 (0) | 2015.04.06 |
MSSQL 테이블 복사 (0) | 2015.04.06 |
[Spring boot] lombok 에러 The method getExample() is undefined for the type Test test.java
Step 1:
Close your IDE.
Step 2:
Download lombox jar => https://projectlombok.org/download
Step 3:
- 설치 : 다운로드 파일 더블 클릭 or java -jar lombok.jar
Step 4:
- SpringToolSuite4.ini 아래 내용 추가
-Xbootclasspath/a:lombok.jar
-javaagent:lombok.jar
Step 5:
- 이클립스 재시작

'Progamming > Spring' 카테고리의 다른 글
[Spring boot] War 파일 생성 (Gradle) (0) | 2020.09.24 |
---|---|
Spring boot(undertow) 불필요한 웹 메서드(HTTP Method) 제거 (0) | 2020.07.21 |
[이클립스] 스프링부트 서버 종료안되는 문제 해결 (0) | 2020.05.25 |
[Spring boot] War 파일 생성 (Gradle)
1. build.gradle 파일 수정
apply plugin: 'war'
bootWar {
archiveBaseName = "oauth2"
archiveFileName = "oauth2.war"
archiveVersion = "0.0.0"
}
2. 명령어 실행
- >gradlew clean bootWar
3. build/libs 아래 war 파일 생성 확인.

4. war 실행 테스트
- java -jar oauth2.war
- http://localhost:8080
'Progamming > Spring' 카테고리의 다른 글
[Spring boot] lombok 에러 The method getExample() is undefined for the type Test test.java (0) | 2020.09.28 |
---|---|
Spring boot(undertow) 불필요한 웹 메서드(HTTP Method) 제거 (0) | 2020.07.21 |
[이클립스] 스프링부트 서버 종료안되는 문제 해결 (0) | 2020.05.25 |