Install MySQL Server 5.1 On Ubuntu 10.04 Lucid Lynx


sudo apt-get install mysql-server-5.1

Install MySQL Server 5.1 On Ubuntu 10.04 Lucid Lynx

http://www.jonathanmoeller.com/screed/?p=1781

http://forum.ubuntu.org.cn/viewtopic.php?p=157127

 

mysql配置记录

重启mysql服务

sudo service mysql restart

 

命令行

mysql -u root -p

 

命令行下查看utf8相关

show variables like 'character%';

 

配置文件所在路径:

sudo vi /etc/mysql/my.cnf

 

配置文件的更改以下两段

[client]

default-character-set=utf8

port = 3306

socket = /var/run/mysqld/mysqld.sock

 

[mysqld]

default-character-set=utf8

init_connect='SET NAMES utf8'

 

 

reference:

http://blog.csdn.net/helen_shw/archive/2009/11/17/4822468.aspx

http://blog.csdn.net/helen_shw/archive/2009/11/17/4822468.aspx

你可能感兴趣的:(sql,server)