250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- html
- php
- Certbot
- new user
- front page
- LetsEncrypt
- MariaDB
- CentOS7
- Mac
- Google Cloud
- child theme
- crontab
- Linux
- DOM Parser
- Liniux
- Xdebug
- git pull
- home page
- mysql
- launch.json
- wordpress
- Apache
- 구글 클라우드
- root
- centos
- vscode
- https
- SSL
- Fail2ban
- non-www
Archives
- Today
- Total
between 0 and 1
add new user and set remote access 본문
Software Development Engineering/MySQL
add new user and set remote access
devxpert.yoon 2021. 2. 10. 01:26728x90
반응형
for internal access (localhost)
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
for remote access
CREATE USER 'newuser'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'%';
FLUSH PRIVILEGES;
728x90
반응형
'Software Development Engineering > MySQL' 카테고리의 다른 글
[MySQL] Make Superuser (root user) (0) | 2021.02.10 |
---|---|
Restore MySQL Dump (0) | 2021.02.10 |
[MySQL] backup (mysqldump) bash script without password (0) | 2021.01.26 |
[MySQL] Too many connection error를 만났을 때 해결 방법 (max_connection 변경을 통한). 그리고 max_connection이 214 이상으로 설정되지 않는 경우 해결 방법 (0) | 2018.07.01 |