全文検索:
- MySQLコマンド
- INSERT ON *.* TO user; データベースレベル GRANT ALL ON db_name.* TO user; GRANT SELECT, INSERT ON mydb.* TO user... BLE hoge_tbl ( id int PRIMARY KEY AUTO_INCREMENT, name text ); </code> ==== テーブルのコピー ==== <code console... code> ==== テーブル名変更 ==== <code> ALTER TABLE tbl_name RENAME [TO] new_tbl_name; </code> ==== テーブル情報を表示(DESCRIBE) ==== DESCRIBE データベース名.テーブル名 ; または DESC デ
- LEFT JOIN、INNER JOIN違い
- l> SELECT * FROM table1; +------+------+ | id | name | +------+------+ | 1 | A | | 2 | B ... l> SELECT * FROM table2; +------+------+ | id | name | +------+------+ | 1 | A | | 2 | B ... table2.id; +------+------+------+------+ | id | name | id | name | +------+------+------+------+ | 1 | A | 1 | A | | 2 | B | 2 | B
- 20 wait_timeoutとthread_cache_size
- it_timeout'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | wait_timeou... e_size'; +-------------------+-------+ | Variable_name | Value | +-------------------+-------+ | thr... d_%' ; +-------------------+---------+ | Variable_name | Value | +-------------------+---------+ |... nect%'; +--------------------+-------+ | Variable_name | Value | +--------------------+-------+ | m
- 01 MySQL インデックス
- ックス mysql> ALTER TABLE hogehoge ADD INDEX index_name(name, created); ==== テーブル作成時 ==== <code> mysql> create table cloudstack_domain_resource( id int not null auto_increment, name text not null created_at datetime not null, pri
- MySQL - シェルで枠まで出力する
- e 'select * from table1' +------+------+ | id | name | +------+------+ | 1 | A | | 2 | B ... ect * from table1' > /tmp/aaa # cat /tmp/aaa id name 1 A 2 B 3 C 4 D 5 E 6 F </code> たまにこの枠も欲しい場合がある... /tmp/aaa # cat /tmp/aaa +------+------+ | id | name | +------+------+ | 1 | A | | 2 | B
- MySQL - レプリケーション
- GE MASTER TO MASTER_HOST='<master host name>', MASTER_USER='<replication user name>', MASTER_PASSWORD='<replication password>... ', MASTER_LOG_FILE='<recorded log file name>', MASTER_LOG_POS=<recorded log offset
- 15 MySQL 55 to 56 で問題
- -------------------------------------+ | Variable_name | Value | +-
- 17 MySQL view一覧
- ===== 17 MySQL view一覧 ====== <code> SELECT table_name, table_schema FROM information_schema.tables WHER
- MySQL - クエリ全部ログ取得
- --------+----------------------------+ | Variable_name | Value | +--------------