COMING SOON 🚀

리자

MySQL(MariaDB) DATABASE, 사용자 생성 및 권한 추가

mysql root 접속

 

[root@localhost ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> 

 

 

DATABASE 생성

 

MariaDB [(none)]> create database dbname character set utf8mb4 collate utf8mb4_unicode_ci;
Query OK, 1 row affected (0.01 sec)

 

 

USER 생성

 

MariaDB [(none)]> create user 'dbuser'@'localhost' identified by 'dbuserpassword';
Query OK, 0 rows affected (0.00 sec)

 

 

권한부여

 

MariaDB [(none)]> grant all privileges on dbname.* to 'dbuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)

 

 

마무리

 

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

|

댓글 5개

그냥 추천
추천추천~~
영어가 한글보다 많아서 추천
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
PHP 6년 전 조회 2,362
기타 6년 전 조회 3,217
JavaScript
[JavaScript]
6년 전 조회 2,360
JavaScript 6년 전 조회 2,553
jQuery 6년 전 조회 2,363
PHP 6년 전 조회 3,013
기타 6년 전 조회 2,862
PHP 6년 전 조회 4,959
기타 6년 전 조회 2,374
정규표현식 6년 전 조회 2,606
정규표현식 6년 전 조회 2,970
웹서버 6년 전 조회 4,461
PHP 6년 전 조회 2,818
PHP 6년 전 조회 3,475
MySQL 6년 전 조회 4,422
jQuery 6년 전 조회 3,869
node.js 7년 전 조회 2,957
node.js 7년 전 조회 2,733
node.js 7년 전 조회 2,928
node.js 7년 전 조회 2,903
node.js 7년 전 조회 2,661
node.js 7년 전 조회 2,792
node.js 7년 전 조회 2,547
node.js 7년 전 조회 2,532
node.js 7년 전 조회 3,004
node.js 7년 전 조회 2,083
node.js 7년 전 조회 2,255
node.js 7년 전 조회 2,732
node.js 7년 전 조회 2,489
node.js 7년 전 조회 2,571