ユーザ用ツール

サイト用ツール


mysql:mysql_secure_installation

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
mysql:mysql_secure_installation [2013/06/12 07:09] – 外部編集 127.0.0.1mysql:mysql_secure_installation [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1
行 1: 行 1:
-  * set_root_password +====== mysql_secure_installation ======
-UPDATE mysql.user SET Password=PASSWORD('$esc_pass') WHERE User='root';+
  
-  * remove_anonymous_users +Set root password? [Y/n] 
-DELETE FROM mysql.user WHERE User='';+> UPDATE mysql.user SET Password=PASSWORD('$esc_pass'WHERE User='root';
  
-  * remove_remote_root +Remove anonymous users? [Y/n] 
-DELETE FROM mysql.user WHERE User='rootAND Host NOT IN ('localhost', '127.0.0.1', '::1');+DELETE FROM mysql.user WHERE User='';
  
-  * remove_test_database +Disallow root login remotely? [Y/n] 
-DROP DATABASE test; +DELETE FROM mysql.user WHERE User='rootAND Host NOT IN ('localhost', '127.0.0.1', '::1');
-DELETE FROM mysql.db WHERE Db='testOR Db='test\\_%'+
  
-  * reload_privilege_tables +Remove test database and access to it? [Y/n] 
-FLUSH PRIVILEGES;+> DROP DATABASE test; 
 +> DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%' 
 + 
 +Reload privilege tables now? [Y/n] 
 +FLUSH PRIVILEGES;
  
mysql/mysql_secure_installation.1371020984.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)