반응형
ERROR 1064 (42000) at line 15172: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '6) ON UPDATE CURRENT_TIMESTAMP(6),
`user_host` mediumtext NOT NULL,
`thread_' at line 2
단순하게 해결하려면 sql 파일을 열어서
ON UPDATE CURRENT_TIMESTAMP(6),
`user_host` mediumtext NOT NULL,
`thread_' at line 2
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE IF NOT EXISTS `slow_log` (
`start_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
`user_host` mediumtext NOT NULL,
`query_time` time(6) NOT NULL,
`lock_time` time(6) NOT NULL,
`rows_sent` int(11) NOT NULL,
`rows_examined` int(11) NOT NULL,
`db` varchar(512) NOT NULL,
`last_insert_id` int(11) NOT NULL,
`insert_id` int(11) NOT NULL,
`server_id` int(10) unsigned NOT NULL,
`sql_text` mediumtext NOT NULL
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log';
/*!40101 SET character_set_client = @saved_cs_client */;
`start_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
`user_host` mediumtext NOT NULL,
이 두줄을 찾아서 싹~ 지워준다
반응형
'얕고넓은지식 > linux' 카테고리의 다른 글
리눅스 하드 사용량 확인 (1) | 2023.06.13 |
---|---|
리눅스 db 복구 (0) | 2023.04.29 |
centos 7 센토스 리눅스 ssl 설치중 인증서 오류 : An unexpected error occurred: TypeError: __str__ returned non-string (type Error) (0) | 2023.04.23 |
certbot ssl 인증서 삭제 (0) | 2023.04.23 |
linux 리눅스 centos 7 - ip주소로는 접속이 되는데 도메인으로는 접속이되지 않습니다. (0) | 2023.04.23 |
linux 리눅스 CentOS 7 방화벽 (firewall) 설정 확인 및 재설정 상태 (0) | 2023.04.23 |
우분투 ubuntu 리눅스 crontab 실행 확인 로그확인 (0) | 2023.04.08 |
centos7 초기화 (0) | 2023.04.05 |
실패 -> 그냥 완전재설치) warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-server-5.7.41-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY (1) | 2023.03.31 |
우분투 서버가 자꾸 멈추네? (0) | 2023.03.28 |