[1] mysqladmin -uxx -pxxxx reload , [2] flush privileges , [3] mysqladmin -uxxx -pxxxx restart 에 대하여 자세히 알고 싶습니다.
안녕하세요, 항상 눈팅만 하다가 이렇게 글을 올립니다.
다름이 아니라, 제가 log-slow-queries 설정을 하고자 my.cnf 를 수정하려는데요.
정기점검을 통한 방법이 아닌( DB 재시작 ), my.cnf 설정을 바로 읽어 들이고자 하는 방법을 찾던중 "mysqladmin reload ;"
를 발견하였습니다. 그런데,
이 reload 가 DB 중단이 되는건지, 아니면 설정을 읽어서 바로 slow-query 로그가 남게되는건지 궁금합니다.
1) 먼저, 매뉴얼 (http://dev.mysql.com/doc/refman/5.1/en/mysqladmin.html) 에는
* reload
- Reload the grant tables.
라고 나와있습니다.
2) grant tables 에 대해서 다시 찾아보았습니다.
* 출처 : http://www.devshed.com/c/a/MySQL/The-MySQL-Grant-Tables/
user - Determines whether or not the connecting user is allowed to connect to the server. Assuming the connection is allowable, the privilege fields contain the user's global privileges.
db - Determines which users can access which databases from which hosts. The privilege contained within the db table apply to the database identified within this table.
host - The host table is used when you want to extend an entry within the db table's range. For example, if a certain db is to be accessed by more than one host, then the superuser would leave the host column empty within the db table and fill the host table with all of the necessary hostnames.
tables_priv - In principle works just like the db table, except that it is used for tables instead of databases. This table also contains one other field category (Other) in which a timestamp and grantor column is stored.The tables_priv table will be explained in further detail later in this article.
columns_priv - Works just like the db and tables_priv tables, except that it provides access privileges for certain columns of certain tables. This table also contains one other field category (Other) in which a timestamp column is stored. The columns_priv table will be explained in further detail later in this article.
grant tables 을 리로드한다. 이것은 일반적으로 쓰이는 flush privileges 와 같은 기능을 얘기하는 듯 합니다.
내용은 길지만, 권한과 관련된 테이블을 말하는 것이었습니다.
테스트 장비에서 mysqladmin reload 를 바로 확인하고자 생각하였으나, 이게 서비스재시작이 된 것인지, 아니면 중단되지 않고 설정만 바로 반영된 것인지 확인할 방법을 생각하지 못하여 이렇게 글을 남깁니다.
결론적으로 무중단 상태에서 my.cnf 를 바로 읽어들이고자 하는데, mysqladmin reload 가 해결책인지 확인하고 싶습니다.
많은 도움 부탁드립니다.


댓글 달기