首先要安装,apt-get install mysql-server mysql-client然后是配置:1.安装过程中会提示输入root密码。2.编辑/etc/mysql/my.cnf 设定 bind-address = your_address3.编辑/etc/mysql/my.cnf 找到 [client],在下面增加 default_character_set = utf84.编辑/etc/mysql/my.cnf 找到 [mysqld],在下面增加 character_set_server = utf8