ニュース
Altering large MySQL tables is a pain. Almost every ALTER TABLE command results in MySQL doing the following: Creation of a temporary copy of the table Doing the modification on the temporary copy ...
これは mysql コマンドを終了するとロックが解除されcfgファイルも削除されてしまうため、 別のターミナルを用意する必要がありました。 その後 cp コマンドでibdファイルとcfgファイルをコピー先テーブルの名前に合わせ、 ALTER TABLE ..
Changing storage engine; rebuild table; change file_per_table, ALTER COLUMN OF TABLE, Change auto-increment value, Renaming a MySQL table, ALTER table add INDEX, Changing the type of a primary key ...
テーブルが使用しているストレージエンジンを変更する場合は次のように「alter」コマンドを使用します。 alter table テーブル名 engine=ストレージエンジン名 mysql> alter table tab1 engine=InnoDB; Query OK, 9 rows affected (0.27 sec) Records: 9 Duplicates: 0 Warnings: 0 ...
これまでMySQLのJSONの活用方法に関して、第197回、第199回で簡単に紹介してきました。今回はちょっとした応用として、JSONの操作を高速に扱えるようにインデックスを貼る方法を2つ紹介したいと思います。
If MySQL exits in the middle of an in-place ALTER TABLE operation (ALGORITHM=INPLACE), you may be left with an orphan intermediate table that takes up space on your system.
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する