顯示具有 MySQL 標籤的文章。 顯示所有文章
顯示具有 MySQL 標籤的文章。 顯示所有文章

2009年5月28日

取得 MySql Table 和 Column 的註解

-- 取得 Table 註解
select table_name, table_comment
from information_schema.tables
where table_comment <> ''
and substring(table_comment, 1, 6) <> 'InnoDB'
;

-- 取得 Column 註解
select table_name, column_name, column_comment
from information_schema.columns
where column_comment <> ''
;

2008年3月11日

MySQL 存超大欄位(Blob)

修改 my.cnf 設定檔

[mysqld]
# max_allowed_packet = 1M 原本 1M 改為 12M
max_allowed_packet = 12M

MySQL 支援多國語言(UTF-8)

修改 my.cnf 設定檔

[client]
default-character-set=utf8

[mysqld]
default-character-set=utf8
default-collation=utf8_general_ci

網誌存檔