YNICTE/Dao/DB/DB0.Create.txt

20 lines
779 B
Plaintext
Raw Permalink Normal View History

2020-10-12 14:39:23 +09:00
#계정생성
2020-12-17 16:19:33 +09:00
mysql -uroot -pdudskarjstjf!@#45
2020-10-12 14:39:23 +09:00
#staging(218.232.111.111)
2020-10-12 15:32:10 +09:00
db!=was> create user 'ynicteadmin'@'%' identified by 'dev1@#';
db=was> create user 'ynicteadminlocal'@'localhost' identified by 'dev1@#';
2020-10-12 14:39:23 +09:00
#product
2020-10-12 15:32:10 +09:00
db!=was> create user 'ynicteadmin'@'%' identified by 'ynicte@Database';
2020-10-12 14:39:23 +09:00
#DB생성
2020-12-17 16:19:33 +09:00
mysql -uroot -proot비밀번호
2020-10-12 15:32:10 +09:00
create database lmsynicte default character set utf8 COLLATE utf8_general_ci;
2020-10-12 14:39:23 +09:00
!!!중요 db스케쥴러 추가
my.ini > event_scheduler = ON
#권한부여
mysql -u root -proot비밀번호
2020-10-12 15:32:10 +09:00
staging> grant all privileges on lmsynicte .* to 'ynicteadmin'@'%';
staging> grant all privileges on lmsynicte .* to 'ynicteadminlocal'@'localhost';
2020-12-17 16:19:33 +09:00
product> grant all privileges on lmsynicte .* to 'ynicteadmin'@'%';