Blog Content

  • [MySQL] Bug 72804 Workaround: “BINLOG statement can no longer be used to apply query events”

    Category MYSQL on 2017. 2. 18. 15:42

    Percona Blog 에 올라온 알려진 버그 72804 정보 공유 드립니다. 버그 내용에 대해 쉽게 설명하자면 PITR (point-in-time recovery) 작업 시 특정 또는 원하는 라인부터 복원 하고자 할 때 아래 메시지와 같이 BINLOG statement 정보가 없어 복원 오류가 발생한다는 내용 입니다. “The BINLOG statement of type Table_map was not preceded by a format description BINLOG statement.” 그렇다면 해결 방법은? 복원하고자 하는 9021 line 부터 마지막 까지 script 를 생성한 후 아래처럼 1~11 line 까지 BINLOG statement 정보를 추출하여 합쳐서 실행해 주면 됩니다. (..

    Read more
  • [Script] Split to Rows

    Category MYSQL on 2017. 2. 9. 07:01

    http://stackoverflow.com/questions/17942508/sql-split-values-to-multiple-rows numbers 라는 테이블에 약 8,000개 정도의 일련번호 값을 넣어 둡니다. (MSSQL 과 비슷한 방식) I have table : id | name 1 | a,b,c 2 | b i want output like this : id | name 1 | a 1 | b 1 | c 2 | If you can create a numbers table, that contains numbers from 1 to the maximum fields to split, you could use a solution like this: select tablename.id, SUBSTR..

    Read more