Change charset in MySQL 5.5 with my.cnf

1.Login msyql command mode and query mysql check character below

mysql> show variables like "%character%";show variables like "%collation%";

2.edit my.cnf

[mysql]
default-character-set=utf8

[mysqld]
collation_server=utf8_general_ci
character_set_server=utf8

3. check charset mysql again

 July 6, 2011

 Blog | # #

qrcode
Facebook Facebook X / Twitter Twitter Telegram Telegram Pinterest Pinterest Email Email

Re-commend-เด็ด ๆ ต่อจาก Change charset in MySQL 5.5 with my.cnf

Optimize MySQL all Databases mysqlcheck

Optimize MySQL all Databases mysqlcheck

หลังจากที่เราใช้ MySQL Tunner ไปแล้ว พบว่า จำเป็นต้อง optimize tables แต่จะทำไงให้ optimize database ได้ทุกตาราง ซึ่งมีวิธีง่ายๆ สามารถใช้คำสั่งนี้ในก..

MySQL Log DirectAdmin Debian

MySQL Log DirectAdmin Debian

find mysqld.log/mysql.log & slowly log file in DirectAdmin(Debian) 1.Login mysql command mysql -u dbuser -p 2.Query mysql variables mysql> show variab..

  • Magicz?~