Server/기타
[mariaDB] mariaDB 사용법
뒹굴거리는프로도
2019. 5. 29. 10:50
반응형
- 데이터베이스 보기
show databases
- 사용자 보기
show users;
- 사용자에게 데이터 베이스 모든 권한 주기
grant all privileges on mysql to usher@localhost;
- 재접속
mysql -u usher -p
- 사용자 권한 보기
show grants for usher@localhost;
* 이클립스와 MariaDB 연동
이렇게 하고 올리니, localhost나 192.168.0.9 에서 접속 denied 된다고 나옴.
다시 MySQL Client 로 들어가 → root 계정 접속 → usher로 접속하는 모든 호스트 허용
grant all privileges on *.* to 'usher'@'%' identified by '1234' with grant option;
이후 에러 사라짐.
반응형