dbms:mysql:accountcreate
MySQL
MySQL User/Database Create Scripts
- 아래는 User/DB 생성 스크립트이다.
# cat admin_user.sql use mysql; grant usage on *.* to admin@localhost; update user set password=password('password') where user='admin'; -- drop database admindb; create database admindb; grant all on admindb.* to admin; flush privileges; - mysql root 로 스크립트를 실행한다.
# mysql -u root -p < admin_user.sql
dbms/mysql/accountcreate.txt · 마지막으로 수정됨: 저자 starlits
