본문 바로가기

2014/11/26

MySQL charset encoding 출처 : http://kwonnam.pe.kr/wiki/database/mysql/charset Charset과 Collation의 차이 Character Set General MySQL에서 문자셋과 Collation의 차이 A character set is a set of symbols and encodings. A collation is a set of rules for comparing characters in a character set. 문자셋(character set)은 심볼(글자)과 인코딩의 묶음이고, Collation은 문자셋의 문자들을 비교하는 규칙이다. 예를들어 글자 A=0, B=1, a=10, b=11 이라고 할 때 'A'는 글자이고 '0'은 인코딩이다. 여기서 볼 때 'A'와 'a'.. 더보기
MySQL 테이블 인코딩 변경하기 MySQL 테이블 인코딩을 변경하기 위해 다음과 같이 할 수 있다. ALTER TABLE users CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; 위 명령은 users라는 테이블을 utf8 인코딩으로 변경한다. 참고: http://www.devcha.com/2008/03/convert-existing-mysql-database-from.html 더보기
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' If you are using ubuntu, you have to use the following steps to avoid this error: run the command vim /etc/mysql/my.cnf comment bind-address = 127.0.0.1 using the # symbol restart your mysql server once. 더보기
MySQL Job failed to start 출처 : http://stackoverflow.com/questions/22909060/mysql-job-failed-to-start First make a backup of your /var/lib/mysql/ directory just to be safe. sudo mkdir /home//mysql/ cd /var/lib/mysql/ sudo cp * /home//mysql/ -R Next purge MySQL (this will remove php5-mysql and phpmyadmin as well as a number of other libraries so be prepared to re-install some items after this. sudo apt-get purge mysql-serv.. 더보기