[Ubuntu] 18.04 MariaDB(MySql) 유저 생성 및 권한 설정하기 (수정)


[Ubuntu] 18.04 MariaDB(MySql) 유저 생성 및 권한 설정하기 (수정)

계정 생성 # root 계정으로 로그인한 경우 mysql # 이외 계정으로 로그인한 경우 sudo su mysql -u root -p create user '아이디'@'%' identified by '비밀번호'; grant all privileges on *.* to '아이디'@'%'; ※ 비밀번호 생성이 안되는 경우 대문자 한개를 포함 모든 권한 부여 grant all privileges on 스키마.테이블 to '계정'@'localhost' identified by '비밀번호'; grant all privileges on 스키마.테이블 to '계정'@'%' identified by '비밀번호'; 특정 테이블 권한 부여 grant select on db스키마.* to `계정이름`@`localhost` identified by '비밀번호'; grant select on db스키마.* to `계정이름`@`%` identified by '비밀번호'; 참고 링크 phpMyAdmin roo...


#mariadb #mysql #user #권한 #생성 #유저

원문링크 : [Ubuntu] 18.04 MariaDB(MySql) 유저 생성 및 권한 설정하기 (수정)