본문 바로가기

다른 DBMS/MySQL&MariaDB50

테이블 관리(file-per-table와 테이블스페이스) 출처 : https://dev.mysql.com/doc/refman/8.0/en/innodb-file-per-table-tablespaces.html https://dev.mysql.com/doc/refman/8.0/en/general-tablespaces.html Mysql은 기본적으로 database라고 불리는 영역이 존재하고 그 내부에 테이블들이 존재합니다.(engine = InnoDB 기준) DB : mysql 5.7.43 mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | | ysbae |.. 2024. 1. 5.
[Warnings]Integer display width is deprecated and will be removed in a future release. 테이블 생성작업을 하는데 아래 에러가 발생했습니다.(Mysql 8.0.21) Integer display width is deprecated and will be removed in a future release. 해석하면 integer 표시법이 사라지고 미래의 버전에서는 제거된다는 이야기였습니다. 해결법으로는 INT(20) -> INT처럼 뒤의 자릿수(width)를 제거하고 생성하면 됩니다. 해당 알람은 int종류 ( INT, SMALLINT, TINYINT, MEDIUMINT, BIGINT ) 에 다 해당됩니다. 2023. 11. 10.
[Client 접속에러] Unblock with 'mysqladmin flush-hosts' 클라이언트로 접속 시도시 발생하는 에러입니다. 아래의 명령어로 flush하면 해결할 수 있습니다. flush hosts; 8.0.34 기준 해당 명령어는 deprecated 된다고 나오네요. 문장을 해석해보니 TRUNCATE TABLE performance_schema.host_cache과 동일한 기능을 가지는거 같습니다. 'FLUSH HOSTS' is deprecated and will be removed in a future release. Please use TRUNCATE TABLE performance_schema.host_cache instead 출처 : https://sd23w.tistory.com/414 mysql 외부 접속시 connection locked 현상 (Unblock with .. 2023. 10. 30.
MySQL 업그레이드 (2) - 마이너 업그레이드 이번 글에는 마이너 업그레이드를 해보고 정리한 글입니다. 이전 글을 참고하여 마이너업그레이드에 대한 정보를 확인하세요. 간단히 말하면 같은 버전에서의 업그레이드입니다. (5.7xx -> 5.7.yy) 이전글 https://bae9086.tistory.com/504 MySQL의 업그레이드 (1) 두 번에 나눠서 MySQL의 업그레이드에 대한 글을 포스팅 하려고 합니다. 1번은 이론적인 부분을 책을 보면서 정리하고, 2번에는 실제로 한번 해보고 테스트 내용을 정리할 예정입니다. MySQL 서버 bae9086.tistory.com OS : CentOS Linux release 7.9.2009 (Core) AS - IS DB 버전 : MySQL 5.7.25 To -be DB버전 : MySQL 5.7.43 마이너.. 2023. 10. 24.