SQL
DB, USER 생성 및 권한설정
미눅스[멘토]
2023. 11. 10. 08:42
728x90
DB, USER 생성 및 권한설정 (MariaDB)
use mysql
create database [DB명];
show databases;
create user [사용자명]@localhost identified by 'uscdb12';
grant all privileges on [DB명].* to [사용자명]@localhost;
grant all on [DB명].* to '[사용자명]'@'localhost' identified by 'uscdb12';
grant all on [DB명].* to '[사용자명]'@'%' identified by 'uscdb12';
flush privileges;