MySQL超小ネタ

更新
システム日付の取得
mysql> select DATE_FORMAT(CurDate(),'%y-%m-%d') as date_format;
+-------------+
| date_format |
+-------------+
| 09-04-08    |
+-------------+

MySQL環境変数の取得
$ mysqladmin -u useid -p Variables
Enter password:
+---------------------------------+-------------------------------------------+
| Variable_name                   | Value                                     |
+---------------------------------+-------------------------------------------+
| auto_increment_increment        | 1                                         |
| auto_increment_offset           | 1                                         |
| autocommit                      | ON                                        |
| automatic_sp_privileges         | ON                                        |
| back_log                        | 50                                        |
| basedir                         | /                                         |
| big_tables                      | OFF                                       |
	・
	・
	・
| connect_timeout                 | 20                                        |
| datadir                         | /var/lib/mysql/                           |
| date_format                     | %Y-%m-%d                                  |
| datetime_format                 | %Y-%m-%d %H:%i:%s                         |
	・
	・
	・
| event_scheduler                 | OFF                                       |
| expire_logs_days                | 0                                         |
| flush                           | OFF                                       |
| flush_time                      | 0                                         |
| foreign_key_checks              | ON                                        |
	・
	・
	・
| max_binlog_cache_size           | 4294967295                                |
| max_binlog_size                 | 1073741824                                |
| max_connect_errors              | 20                                        |
| max_connections                 | 100                                       |
	・
	・
	・

| port                            | 3306                                      |
	・
	・
	・

---- OLD ---- 追加しました。 MySQL misc 本当の超小ネタ。 このページは追々追記(そればっか)。

カテゴリ

Amazon

アクセスランキング

[ジャンルランキング]
コンピュータ
226位
アクセスランキングを見る>>

[サブジャンルランキング]
プログラミング
37位
アクセスランキングを見る>>

RSSリンクの表示

QRコード

QRコード

サイトマップ

Copyright © nopgm