MariaDB 새 계정 추가

beans·2022년 11월 25일
0

1 mysql 접속

mysql -u root -p

2 계정 생성

  • create user [user name]@localhost identified by '[password]';
  • localhost: localhost로만 접속 가능 여부 설정
    (localhost 대신 %를 사용하면 원격 접속 가능)
create user newaccount@'%' identified by 'new_$ecure_p@ssw0rd';

0개의 댓글