YNICTE/Dao/DB/DB0.Create.txt

22 lines
952 B
Plaintext

#계정생성
mysql -u root -p rhdwjdrudwod!@#45
#staging(218.232.111.111)
db!=was> create user 'ynicteadmin'@'%' identified by 'dev1@#';
db=was> create user 'ynicteadminlocal'@'localhost' identified by 'dev1@#';
#product
db!=was> create user 'ynicteadmin'@'%' identified by 'ynicte@Database';
db=was> create user 'ynicteadminlocal'@'localhost' identified by 'ynicte@Database';
#DB생성
mysql -u root -proot비밀번호
create database lmsynicte default character set utf8 COLLATE utf8_general_ci;
!!!중요 db스케쥴러 추가
my.ini > event_scheduler = ON
#권한부여
mysql -u root -proot비밀번호
staging> grant all privileges on lmsynicte .* to 'ynicteadmin'@'%';
staging> grant all privileges on lmsynicte .* to 'ynicteadminlocal'@'localhost';
product> grant all privileges on lmsynicte .* to 'ynicteadmin'@'%';
product> grant all privileges on lmsynicte .* to 'ynicteadminlocal'@'localhost';