YNICTE/Dao/DB/DB0.Create.txt

22 lines
952 B
Plaintext
Raw Normal View History

2020-10-12 14:39:23 +09:00
#계정생성
mysql -u root -p rhdwjdrudwod!@#45
#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';
db=was> create user 'ynicteadminlocal'@'localhost' identified by 'ynicte@Database';
2020-10-12 14:39:23 +09:00
#DB생성
mysql -u root -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';
product> grant all privileges on lmsynicte .* to 'ynicteadmin'@'%';
product> grant all privileges on lmsynicte .* to 'ynicteadminlocal'@'localhost';