user 설정
INSERT INTO mysql.user (Host, User, Password, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv,
Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv, Create_view_priv,
Show_view_priv, Create_routine_priv, Alter_routine_priv, Create_user_priv, Event_priv, Trigger_priv, ssl_type,ssl_cipher, max_questions,
max_updates, max_connections, MAX_USER_CONNECTIONS,x509_issuer,x509_subject,authentication_string)
VALUES ('localhost', 'stk5', PASSWORD('stk5'), 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N',
'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', '','', '0', '0', '0', '0','','','');
db설정
INSERT INTO mysql.db
(Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Create_tmp_table_priv, Lock_tables_priv, Create_view_priv, Show_view_priv, Create_routine_priv, Alter_routine_priv, Execute_priv, Event_priv, Trigger_priv)
VALUES
('localhost', 'stk5', 'stk5', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
mysql 재시작
flush privileges;
'IT > [DB]MySql' 카테고리의 다른 글
[mysql] 리눅스에서 mysql 설치부터 접속까지 (0) | 2017.11.21 |
---|---|
[mysql] view 오류 (0) | 2017.03.15 |
mysql 날짜함수 변경하기-해결 (0) | 2016.05.20 |
[mysql] 초기화,재시작 (0) | 2016.01.15 |
DB세팅 (0) | 2015.12.10 |