DB
-
DBUnit으로 이기종 간 데이터 이관하기DB 2020. 3. 10. 09:28
이전 포스팅에 이어, 현 회사에서는 이기종간 mapper dir을 별도로 관리하고있는데, mapper는 분류하여 작업한다 하더라도, 실제 데이터( mock data )에 대해서는 해결할 방안을 찾던 중 https://woowabros.github.io/experience/2019/11/06/db-unit.html 스프링부트에서 DbUnit 을 이용하여 DB 테스트 해보기 - 우아한형제들 기술 블로그 안녕하세요. 상품시스템팀 권순규입니다. 저희 팀에서 DB 테스트를 위해 사용하고 있는 DbUnit 의 설정 및 사용에 대해 알려드리고자 합니다. woowabros.github.io 위 포스팅을 보고 데이터 이관을 DBUnit으로 할 수 있을 것으로 보여 시작하였다. 우선 DBUnit이란 xml 형태로 data..
-
Mysql The user specified as a definer ('계정명'@'호스트') does not existDB 2017. 5. 30. 13:25
ERROR 1449 (HY000): The user specified as a definer ('계정명'@'호스트') does not exist 해당 이슈가 발생할 경우가 많은데 발생한 경로는 mysql dump -> mysql dump 즉 dump를 뜨고 dump를 복구 처리하는 과정에서 생겼는데, 이런 이슈는 트리거쪽에 정의자 때문에 발생하는 것인데, dump 파일쪽을 자세히 보면, /*!50017 DEFINER=`test`@`ip`*/ /*!50003 TRIGGER trg_test_insert 와 같이 문구가 작성되어 있는 내역이 존재할텐데, 해당 놈때문에 이슈가 생성되는것이니.. 저부분을 수정하든, 트리거를 재생성하든 해야한다..
-
Mysql 호스트 접근 오류 날 경우DB 2017. 5. 28. 13:43
'GRANT' 명령을 이용하면 쉽게 사용자 추가 및 권한 설정이 가능합니다. * 일반 사용자 추가 mysql> grant all privileges on dbuser.* to dbuser@1.1.1.1 identified by 'password' with grant option; * 특정 이름의 데이터베이스에 대한 모든 권한을 가지는 사용자 추가 mysql> grant all privileges on `dbuser_%`.* to dbuser@1.1.1.1 identified by 'password' with grant option; >> ERROR 1130 오류 코드 ERROR 1130 (00000): Host 'x.x.x.x' is not allowed to connect to this MySQL se..