데이터베이스/MYSQL
MYSQL 자주사용하는 명령어
죠부니
2018. 7. 8. 21:32
반응형
접속
mysql -u root -p
데이터베이스 확인
show databases
데이터베이스 사용
use database
권한설정
grant all privileges on dbname.table to userid@host identified by 'password';
외부접속 가능한 권한설정
grant all privileges on *.* to userid@'%' identified by 'password';
권한 적용
flush privileges;
반응형