Which is faster: char(1) or tinyint(1) ? Why?

Rate insert tinyint(1) insert char(1) insert enum(‘y’, ‘n’) insert tinyint(1) 207/s — -1% -20% insert char(1) 210/s 1% — -19% insert enum(‘y’, ‘n’) 259/s 25% 23% — Rate insert char(1) insert tinyint(1) insert enum(‘y’, ‘n’) insert char(1) 221/s — -1% -13% insert tinyint(1) 222/s 1% — -13% insert enum(‘y’, ‘n’) 254/s 15% 14% — Rate … Read more

BOOLEAN or TINYINT confusion

MySQL does not have internal boolean data type. It uses the smallest integer data type – TINYINT. The BOOLEAN and BOOL are equivalents of TINYINT(1), because they are synonyms. Try to create this table – CREATE TABLE table1 ( column1 BOOLEAN DEFAULT NULL ); Then run SHOW CREATE TABLE, you will get this output – … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)