Server

mysql 테이블 손상시 #1146 - Table 해결방법

by nanumi posted Jul 17, 2016
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

mysql 테이블 손상시 #1146 - Table 해결방법


 #1146 - Table 'mysql.innodb_index_stats' doesn't exist


table lock.png





 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';



테이블_손상.png



테이블 목록에는 나오는데 구조를 열면 열리지 않는다.

#1146 - Table 'mysql.innodb_index_stats' doesn't exist


오류 메시지가 나옴


초기화 후 재생성.png


초기화 후 재생성 한다.



테이블나옴-필요없으면 삭제.png


목록은 튀어 나오지만 테이블 자료는 몽땅 사라졌다.

#mysql #table #1146 #urin79







Articles

2 3 4 5 6