Fedora 11上安裝BugZilla出現 max_allowed_packet is read-only問題的解決方案問題描述:當我運行已經安裝完所有的perl模組以及MySQL資料庫後,./checksetup.pl時錯誤提示如下:DBD::mysql::db do failed: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value [for Statement
損壞聯機日誌的恢複方法損壞非當前聯機日誌大家都清楚,聯機日誌分為當前聯機日誌和非當前聯機日誌,非當前聯機日誌的損壞是比較簡單的,一般通過clear命令就可以解決問題。1、啟動資料庫,遇到ORA-00312 or ORA-00313錯誤,如ORA-00313: open failed for members
利用mysql內建內建函數:INET_ATON(expr)Given the dotted-quad representation of a network address as a string, returns an integer that represents the numeric value of the address. Addresses may be 4- or 8-byte addresses.mysql> SELECT INET_ATON('209.207.224.4
Oracle資料庫中各種對象(包括表,列,索引等)預設不區分大小寫,在資料字典中一律用大寫。假如使用者在建表(包括外部表格)時,將列名/表名用雙引號括起,這些都成為大小寫區分的資料庫物件。這時select 時需要嚴格按照建表時的大小寫才能成功,否則返回ORA-000904或ORA-00942錯誤。某些軟體可以協助使用者自動產生Create table語句,這時需要將雙引號去掉。否則會產生上述錯誤。create table "t" ( "a" int );table "t"
1、開啟10046事件跟蹤 alter session set events '10046 trace name context forever, level 12'; 2、隨便執行一個SQL語句(trace檔案中我們會發現此SQL的執行情況)select * from dba_users where username='HR'; 3、停止10046事件跟蹤alter session set events '10046 trace name context
Innodb 死結案例,先貼上案例資訊吧:*** (1) TRANSACTION: TRANSACTION 52EDC5761, ACTIVE 0 sec inserting mysql tables in use 1, locked 1 LOCK WAIT 3 lock struct(s), heap size 1248, 2 row lock(s) MySQL thread id 34815573, OS thread handle 0x7f1e42a6a700, query id 9442