これでwarningログが自動的に表示される。
mysql> \W
Show warnings enabled.
mysql> create table if not exists a(id int primary key);
Query OK, 0 rows affected (0.01 sec)
mysql> create table if not exists a(id int primary key);
Query OK, 0 rows affected, 1 warning (0.00 sec)
Note (Code 1050): Table 'b' already exists