반응형
- 데이터베이스 보기
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;
이후 에러 사라짐.
반응형
'Server > 기타' 카테고리의 다른 글
[MS-SQL] MS-SQL 쿼리 ON절과 Where 절의 차이 (0) | 2020.10.07 |
---|---|
IP주소 바뀐 server 주소 변경 방법 (0) | 2017.09.16 |