龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 数据库类 > MySQL 技术 >

Liunx环境下MySQL字符集的修改方法(1)

时间:2011-04-12 23:18来源:未知 作者:admin 点击:
分享到:
MySQL字符集的修改在不同的环境下有不同的方法,下面为您介绍的是在Liunx环境下 MySQL 字符集的修改方法,如果您对此方面感兴趣的话,不妨一看。 Liunx下修改MySQL字符集: 1.查找MySQL的

MySQL字符集的修改在不同的环境下有不同的方法,下面为您介绍的是在Liunx环境下MySQL字符集的修改方法,如果您对此方面感兴趣的话,不妨一看。

Liunx下修改MySQL字符集:

1.查找MySQL的cnf文件的位置

  1. find / -iname '*.cnf' -print  
  2.  
  3. /usr/share/mysql/my-innodb-heavy-4G.cnf  
  4. /usr/share/mysql/my-large.cnf  
  5. /usr/share/mysql/my-small.cnf  
  6. /usr/share/mysql/my-medium.cnf  
  7. /usr/share/mysql/my-huge.cnf  
  8. /usr/share/texmf/web2c/texmf.cnf  
  9. /usr/share/texmf/web2c/mktex.cnf  
  10. /usr/share/texmf/web2c/fmtutil.cnf  
  11. /usr/share/texmf/tex/xmltex/xmltexfmtutil.cnf  
  12. /usr/share/texmf/tex/jadetex/jadefmtutil.cnf  
  13. /usr/share/doc/MySQL-server-community-5.1.22/my-innodb-heavy-4G.cnf  
  14. /usr/share/doc/MySQL-server-community-5.1.22/my-large.cnf  
  15. /usr/share/doc/MySQL-server-community-5.1.22/my-small.cnf  
  16. /usr/share/doc/MySQL-server-community-5.1.22/my-medium.cnf  
  17. /usr/share/doc/MySQL-server-community-5.1.22/my-huge.cnf  

2. 拷贝 small.cnf、my-medium.cnf、my-huge.cnf、my-innodb-heavy-4G.cnf其中的一个到/etc下,命名为my.cnf

  1. cp /usr/share/mysql/my-medium.cnf /etc/my.cnf 


精彩图集

赞助商链接