mysql 3

[ERROR] MySQLSyntaxErrorException: Table doesn't exist ..

에러 상황 Ubuntu 20.04 테스트 서버에 mariaDB 스키마 추가 후 계정 생성 및 권한 설정 후 소스코드를 실행시에 해당 에러 발생 [ Intellij 콘솔 ] Table 'test.COMTNEMPLYRINFO' doesn't exist 해당 데이타베이스에 [테이블]이름을 가진 테이블이 존재하지 않을때 발생 다른 서버에서 dump를 떠와서 테스트 서버로 restore 했기 때문에 테이블은 존재하지만 에러가 발생했다는 것을 인지 해결 Mysql 기본 설정으로 테이블의 대소문자 구분을 설정 되어있음. show variables like 'lower_case_table_names'; Ununtu Mysql 설정 : /etc/mysql/mariadb.conf.d/50-server.cnf vim /et..

Database 2021.12.07

[ERROR] MySQL 접속시 caching_sha2_password 오류

MySql 8.0의 기본 인증 플러그인 예전의 mysql_native_password가 아니라 caching_sha2_password이다. Authentication plugin 'caching_sha2_password' cannot be loaded I am connecting MySQL - 8.0 with MySQL Workbench and getting the below error: Authentication plugin 'caching_sha2_password' 방법1. ALTER USER '계정'@'localhost' IDENTIFIED WITH mysql_native_password BY '비밀번호'; 방법2. my.ini 파일 변경 [mysqld] default_authentication_p..

Database 2021.11.25

Ubuntu20.04 Mysql 외부접속 허용

로컬이 아닌 외부에서 접속시에 오류가 발생 기본적으로 Mysql은 로컬에서만 접속 가능하게 설정 cnf파일 수정 mysql의 설정이 되어있는 cnf 파일을 수정 # 설치시 별 다른 옵션을 주지 않았다면 아래와 같은 곳에 cnf 파일이 존재한다. $ sudo vim /etc/mysql/my.cnf $ sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf - 기존 bind-address 주석처리 후 0.0.0.0을 추가 #bind-address = 127.0.0.1 bind-address = 0.0.0.0 - mysql 재시작 sudo service mysql restart iptables rule 추가 (iptables-persistent 사용기준) sudo iptables -I ..

Linux 2021.11.25