2022-02-01から1ヶ月間の記事一覧

DBファイル移動時のDMLへの影響

DB

MySQL (8.0.26)https://qiita.com/terra_yucco/items/6e4f02f8aaff25529dec -- 1. データファイル移動先の準備mkdir -p /home/mysql/tbs1chown -R mysql:mysql /home/mysql vim /etc/my.cnfinnodb_directories=/home/mysql systemctl restart mysqld select …

データベースファイル移動

DB

MySQL (8.0.26)https://ez-net.jp/article/4B/v4oWna5J/kpwT0SuSlcvA/https://qiita.com/ShuM/items/1a960b4ef53f8a08dd5ahttps://dev.mysql.com/doc/refman/8.0/ja/general-tablespaces.html#general-tablespaces-moving-non-partitioned-tables データディ…

{Lambda}チュートリアル: API Gateway で Lambda を使用する

AWS

https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/services-apigateway-tutorial.htmlhttps://dev.classmethod.jp/articles/getting-started-with-api-gateway-lambda-integration/ -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストー…

全角スペースの影響

DB

MySQL (8.0.26)mysqlで確認 drop table tab1;create table tab1(col1 bigint);create unique index ind1 on tab1(col1); drop procedure proc1; delimiter //create procedure proc1(in x int)begin declare i bigint; set i = 0; start transaction; while …

{Lambda}チュートリアル - カスタムランタイムの公開

AWS

https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/runtimes-walkthrough.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unzip awscli…

{Lambda}AWS Lambda でのコード署名の設定

AWS

https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/configuration-codesigning.htmlhttps://dev.classmethod.jp/articles/lambda-support-verify-code-sign/ コンテナイメージとして定義された関数では、コード署名はサポートされません。 -- 1. コマンド…

非同期コミットパラメータ

DB

MySQL (8.0.26) show variables like 'innodb_flush_log_at%'; innodb_flush_log_at_trx_commit 0 ログは 1 秒に 1 回書き込まれ、ディスクにフラッシュされます1 (デフォルト) ログは、トランザクションのコミットごとにディスクに書き込まれ、フラッシュさ…

{Lambda}コンテナイメージとして定義された Lambda 関数の作成

AWS

https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/gettingstarted-images.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unzip awscl…

管理者用接続

DB

MySQL (8.0.26)https://gihyo.jp/dev/serial/01/mysql-road-construction-news/0164 -- 接続数上限パラメータshow variables like '%max_connection%'; max_connections 許可される最大のクライアントの同時接続数。デフォルト151mysqlx_max_connections X …

パラメータ渡し

DB

MySQL (8.0.26)https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q11176009486 drop table tab1;create table tab1(col1 int, col2 varchar(1));insert into tab1 values(1,'A');insert into tab1 values(2,'B');insert into tab1 values(3,'C');s…

動的SQLの実行計画確認

DB

MySQL (8.0.26) drop table tab1; create table tab1( col1 int primary key, col2 int, col3 int, col4 int) partition by range (col1) ( partition p1 values less than (0) , partition p2 values less than (maxvalue) ); set @sSQL := concat(" explai…