aws apm 자동 설치 후
- etc/mysql/mysql.conf 경로에서 nano mysqld.cnf 파일을 편집해주는데
데이터베이스가 손상되었다고 재실행이 안됨
내가 추가로 작성했던 코드들을 삭제해주고 재시작하니 잘됨
주석 부분도 #추가
이렇게 한글을 적었는데 오류 난 듯함
db에 데이터베이스 저장 할 때 utf8오류 때문에
//이것은 리눅스에 mysql 설치
1) my.cnf 파일 설정 변경
$ whereis my.cnf
$ sudo vi /usr/local/mysql/my.cnf
[mysqld]
...
default-character-set=utf8
default-collation=utf8_general_ci
...
2) database, table character set 설정
mysql> ALTER TABLE table_name convert to charset utf8;
출처: https://postitforhooney.tistory.com/entry/DBMariaDBMysql-Mysql-언어설정으로-인한-문제-그리고-해결 [PostIT]
//이것은 나는 aws mysql이기 때문에
1)mysqld.cnf 파일 수정해줘야함
$etc/mysql/mysql.conf
$nano mysqld.cnf
2)추가
[mysqld]
...
default-character-set=utf8
default-collation=utf8_general_ci
...
'내맘대로 > 오류모음' 카테고리의 다른 글
[맥os] iTerm, 터미널에서 code. 안 될 때 (2) | 2024.10.13 |
---|---|
Access denied for user 'root'@'localhost' mysql root 접속 안될 때 (0) | 2019.12.10 |
[aws ubuntu18.04LTS] mysql 재실행 문제 (0) | 2019.11.29 |
[aws ubuntu18.04LTS] html 파일의 php코드 인식하기 (0) | 2019.11.29 |
failed to connect to mysql: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) | 2019.11.27 |