Skip to content

Instantly share code, notes, and snippets.

View nvu's full-sized avatar

nvu nvu

View GitHub Profile
@nvu
nvu / gist:0f26dc2ea748af24c6c835cfd24f07a5
Created January 11, 2025 07:21
mysql2 로 mariadb 접속이 이상하게 안된다
1. docker 로 배포되어 있는 잘쓰던 mariadb 개발용 컨테이너가 있었다.
2. DataGrip, Python PyMySQL 등으로는 아무렇지 않게 접속되나 mysql2 패키지로는 접속이 안되었다.
3. mariadb docker 서비스 로그를 보니
[Warning] Aborted connection 49 to db: 'unconnected' user: 'unauthenticated' host: '172.17.0.1' (This connection closed normally without authentication)
[Warning] IP address '172.17.0.1' could not be resolved: Temporary failure in name resolution
라고 하였다.
4. mariadb.cnf 를 열어
```skip_name_resolve```
를 넣고 mariadb를 재시작해주었다.
@nvu
nvu / Podfile
Created April 12, 2021 08:41
pod update할 때 pbxproj에 Preprocessor 값 넣어주기
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
if target.name == 'module_name'
target.build_configurations.each do |config|
if config.name == "foo"
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'bar'
end
end
end