ERROR1.
에러 | java.lang.ClassNotFoundException: org.mariadb.jdbc.Driver |
해결 | >> 드라이브 미설치시 에러 >> 커넥트 드라이버(jar)다운 및 설치의 경우 : 여기서 다운받아 import : https://downloads.mariadb.org/connector-java/ >> maven 의 경우 https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client/2.0.1 >> 선택 우클릭 maven > update |
출처 | |||
한줄씩 증가하게 업데이트 | SELECT @rank:=0; UPDATE the_bible_verse SET verse_sn=@rank:=@rank+1 ORDER BY bible_publish_sn, bible_sn, chapter_no, verse_sn; |
https://oddly.tistory.com/69 |
![]() ![]() MySQL : 1995년 발표 오픈소스 DBMS , 2010년 썬을 오라클에서 인수할때 같이 넘어감 MariaDB : 2009년 MySQL 개발자 들이 따로나와 MariaDB 재단을 세워 개발 기능은 mySQL과 동일, 성능은 더 낫다고 함 (오라클인수후 mySQL 기능 추가 가 잘안된다고함) 리눅스 배포판중 페도라, 오픈수세는 MySQL을 버리고 MariaDB장착 https://namu.wiki/w/MySQL https://namu.wiki/w/MariaDB |
||
데이터 베이스 | [1028 데이터베이스] 데이터베이스 기본 | |
버전확인 | select * from v$version; | |
(+) : outer 조인, 한쪽만 사용가능 | ||
검토전
1. mysql, / mariadb 사용시 시스템시간 검토필요
$ select now();
$ set global time_zone = 'Asia/Seoul';
$ set time_zone = 'Asia/Seoul';
$ select now();
$ select now();
$ set global time_zone = 'Asia/Seoul';
$ set time_zone = 'Asia/Seoul';
$ select now();
2, maria DB 생성
show databases;
create database tech; create user 'tech'@'localhost' identified by '1234'; -- 로컬사용자 drop user 'tech'; create user 'tech'@'%' identified by '1234'; -- 외부접속사용자 grant all privileges on tech.* to 'tech'@'%'; flush privileges; |
$ cd C:\Program Files\MariaDB 10.2\bin) // 기존 로컬 사용시
$ mysql -uroot -p
$ create database today10secDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
$ create user 'today'@'today10secDB' identified by '1234';
$ grant all on today10secDB.* to today@localhost identified by '1234';
$ flush privileges;
$ show databases;
$ exit;
$ mysql -u today -p
$ use today10secDB
$ status
그외 필요설정 검토.
($ cd C:\Program Files\MariaDB 10.2\bin) // 기존 로컬 사용시
$ mysql -uroot -p
$ create database today10secDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
$ create user 'today'@'today10secDB' identified by '1234';
$ grant all on today10secDB.* to today@localhost identified by '1234';
$ flush privileges;
$ show databases;
$ exit;
$ mysql -u today -p
$ use today10secDB
$ status
그외 필요설정 검토.
'Web' 카테고리의 다른 글
[1028 운영] 운영 정보 모음 (0) | 2021.05.02 |
---|---|
[1028 shell script] 작성해본 기능 정리 (0) | 2021.05.02 |
[1028 코딩] 코딩팁 모음 (0) | 2021.05.02 |
[1028 Docker] 도커 mariadb, vi 외 (0) | 2021.04.27 |
[1028 gradle] 에러모음 (0) | 2021.04.27 |