ラベル MariaDB の投稿を表示しています。 すべての投稿を表示
ラベル MariaDB の投稿を表示しています。 すべての投稿を表示

2017年11月1日水曜日

raspberry (MariaDB不具合)

◻️rootでパスなしで入れてしまうので、以下の対策を実施

==============================================================================
use mysql;
delete from user where User='root';

flush privileges;
grant all privileges on *.* to 'root'@'localhost' identified by '任意のパスワード' with grant option;
grant all privileges on *.* to 'root'@'127.0.0.1' identified by '任意のパスワード' with grant option;
grant all privileges on *.* to 'root'@'::1' identified by '任意のパスワード' with grant option;
grant all privileges on *.* to 'root'@'ホスト名' identified by '任意のパスワード' with grant option;
update user set Create_tablespace_priv="N" WHERE User='debian-sys-maint' ;
flush privileges;
==============================================================================

<参照先>
https://jyn.jp/ubuntu-16-04-mariadb-password-bug/

Lambda + SSM Run Commandで、数十台のEC2のuserdata結果を一括確認する

コードを1枚貼って、テストイベントを実行するだけで、 全台の確認結果が返ってくる手順です。 [ゴール] Nameタグが web-* / api-* / batch-* のEC2すべてに確認コマンドを流し、 NGの台だけ を結果に表示します。確認対象のuserdata(Ubu...