mysql 테이블 손상시 #1146 - Table 해결방법
#1146 - Table 'mysql.innodb_index_stats' doesn't exist |
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Datab ase changed |
DROP TABLE `xe_analysis_favorite_document`;
CREATE TABLE `xe_analysis_favorite_document` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,
`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table';
테이블 목록에는 나오는데 구조를 열면 열리지 않는다.
#1146 - Table 'mysql.innodb_index_stats' doesn't exist
오류 메시지가 나옴
초기화 후 재생성 한다.
목록은 튀어 나오지만 테이블 자료는 몽땅 사라졌다.
#mysql #table #1146 #urin79