설치 후 원격에서 접속 안될 때 bind-address 주석 처리.
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address           = 127.0.0.1


MySQL 사용자 추가
grant all privileges on [DB_NAME].* to [USER_ID]@localhost identified by '[PASSWORD]';
grant all privileges on [DB_NAME].* to [USER_ID]@"%" identified by '[PASSWORD]';
flush privileges;

내가 쓰지 않는 기술 중에 하나다.
몰라서 안썼을까? 알고도 안썻을까?
FK 만 생각 하고 있었는데 Constraint 도 써보자..


코드를 만들고 해당테이블에 그 코드를 사용할때 FK 제약 조건을 걸지 않았다.
이유는 실제 code가 아니라 codeno가 PK 이기 때문이었다.

이런 쪽에는 Constraint를 사용하면 데이타 무결성 측면에서 도움이 될꺼 같다.

+ Recent posts