디비 접속후
MariaDB [mysql]> select host,user,password from user;
계정생성
MariaDB [mysql]> create user 'id'@'%' identified by 'password';
확인해 보면 사용자가 추가 되었다
모든 권한 부여
grant all privileges on *.* to 'id'@localhost identified by 'pass';
특정 디비에 부여 관여 (해당 디비에 접속 후)
grant all privileges on db이름.*to 'id'@localhost identified by 'pass';
모든 디비 테이블 DML권한 부여
grant select, insert, update on test.* to user@localhost identified by '비밀번호'
권한 부여 하고 실행
flush privileges;
권한이 잘 부여 됐는지 확인
show grants for id@localhost';
[sql] MYSQL 번호 부여하기 @ROWNUM (0) | 2022.02.11 |
---|---|
mysql 비밀번호 입력하지 않고 root 계정으로 접속 하기 (0) | 2021.11.04 |
[DB] mariadb 한글 깨짐 인코팅 설정 utf8 (0) | 2021.10.19 |
mariadb root 비빌번호 설정 (0) | 2021.09.28 |
mysql 레코트 가져오기 mysqli_fetch (0) | 2021.09.14 |
댓글 영역