in mysql >= 5.5 use different method for opening table def.