본문 바로가기

반응형

DB(SQL)/mysql|maria

(32)
[mysql] mysql version 선택시 참조해야하는 글 RENAME DATABASE (5.1.7~5.1.22) MySQL 에서는 버전 5.1.7 에서 RENAME DATABASE 구문이 추가되었으나, database 의 내용이 손실될 위험성이 발견이 되어 버전 5.1.23 이후부터 제거됐다고 한다. https://ryean.tistory.com/41 [MySQL] 데이터베이스 이름 변경 (RENAME DATABASE) MySQL 에서는 버전 5.1.7 에서 RENAME DATABASE 구문이 추가되었으나, database 의 내용이 손실될 위험성이 발견이 되어 버전 5.1.23 이후부터 제거됐다고 한다. 그래서 database 이름을 변경하려면 새로운 datab ryean.tistory.com
[mysql|mariadb] 문자열 합치는 함수 (feat. concat, concat_ws, group_concat) concat 문자열 합치기 https://mariadb.com/kb/en/concat/ CONCAT Returns concatenated string. mariadb.com syntax CONCAT(str1,str2,...) example SELECT CONCAT('Ma', 'ria', 'DB'); +---------------------------+ | CONCAT('Ma', 'ria', 'DB') | +---------------------------+ | MariaDB | +---------------------------+ SELECT CONCAT('Ma', 'ria', NULL, 'DB'); +---------------------------------+ | CONCAT('Ma', 'ria', ..
[MariaDB] 오픈소스 모니터링 툴 PMM2 사용기 PMM-Server 설치 https://docs.percona.com/percona-monitoring-and-management/setting-up/server/docker.html Docker - Percona Monitoring and Management Docker How to run PMM Server with Docker based on our Docker image. The tags used here are for the current release. Other tags are available. Before you start Install Docker 1.12.6 or higher. Run Summary Pull the Docker image. Copy it to create a persi..
[Mariadb] Window functions not working in ONLY_FULL_GROUP_BY mode II 세줄 요약 원인 : ONLY_FULL_GROUP_BY mode II 에서 Window functions 를 사용할 수 없음 해결방법 1 : sql mode에서 ONLY_FULL_GROUP_BY 제거 해결방법 2 : mariadb upgrade oracle을 사용했던 유저로써 window function은 참으로 유혹적인 기능이다. mysql과 mariadb에서도 사용이 가능하다는걸 알게 되고 너무나도 행복했다. 그래서 바로 사용을 하려고했으나, ERROR 1140 (42000): Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP 가 떴다. https://mariadb.com/kb/en/mariadb-error-codes/ 이 에러에 대해서 ..
(펌)MySQL 쓰면서 하지 말아야 할 것 17가지 출처 : https://blog.lael.be/post/370 MySQL 쓰면서 하지 말아야 할 것 17가지 *MySQL 쓰면서 하지 말아야 할 것 17가지* 권장사항이다. 이것을 이해하면 당신의 어플리케이션이 더 나은 성능을 발휘할 것이다. 다만 이것이 사람의 실력을 판단하는 척도로 사용되서는 안 될 것 blog.lael.be HYEONG HWAN, MUN/ 10월 22, 2014 *MySQL 쓰면서 하지 말아야 할 것 17가지* 권장사항이다. 이것을 이해하면 당신의 어플리케이션이 더 나은 성능을 발휘할 것이다. 다만 이것이 사람의 실력을 판단하는 척도로 사용되서는 안 될 것이다. 작게 생각하기 - 조만간 규모가 커질거라면 MySQL ecosystem을 봐야된다. - 그리고 캐싱 빡시게 안 하는 메이저..
[MYSQL] mysqldump 기본 문법 (Database Backup Program) MARIA DB도 mysqldump로 백업이 가능하다. https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html MySQL :: MySQL 8.0 Reference Manual :: 4.5.4 mysqldump — A Database Backup Program 4.5.4 mysqldump — A Database Backup Program The mysqldump client utility performs logical backups, producing a set of SQL statements that can be executed to reproduce the original database object definitions and table data. It du..
[MARIADB] Insert into same table trigger mysql 오늘의 일기 트리거를 통해서 같은 테이블에 가공이 들어가고 싶었다. 하지만 불가능 하단다.. 눈물 왜? 무한루프가 돌 수 있기 때문에 https://stackoverflow.com/questions/8504904/insert-into-same-table-trigger-mysql Insert into same table trigger mysql I need to insert a discount line into a table everything time a I insert a line into the same table. Now i know that this could end in a endless loop but I have put checks in so it wont insert anyt... stac..
[mariadb] install mariadb on ubuntu 18.04 ubuntu 18.04에 mairadb 설치 방법 참조 https://mariadb.com/kb/en/installing-mariadb-deb-files/ 업그레이드 https://mariadb.com/kb/en/upgrading/ 업그레이드하기 전에 데이터베이스를 백업하는 것이 가장 좋습니다. 이것은 항상 업그레이드 전에 수행하는 것이 좋습니다. Mariabackup 을 추천 합니다 . 필수 구성요소 sudo 권한을 가진 사용자로 로그인 sudo apt update 1. 제일 쉬운 방법 (version 선택 못함) sudo apt install mariadb-server 이 방법으로 하였을 때 자동으로 실행됨으로 바로 설치 확인을 하여 잘 설치되었는지 확인할 수 있다. 버전은 최신버전은 아닌것 같다. ..

반응형