Problem
By right CREATE TABLE IF NOT EXISTS $table
query should be working since it work in live project. However it's not able to create new table after setup.
I have checked mysql error log, error do not exist. Not able to find mysql error - ( refer How to see log files in MySQL? )
My Setup
MySQL Version 5.5.0
MySQL charset: UTF-8 Unicode (utf8)
Apache/2.4.23 (Unix) PHP/5.6.25
MySQL client version: mysqlnd 5.0.11-dev - 20120503 - $Id$
phpMyAdmin Version information: 3.4.6
Solution : Do not include sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO$
in my.cnf
file.
One of the command here cause problem, but at last it's work after removed it.