Chinaunix首页 | 论坛 | 博客
  • 博客访问: 284143
  • 博文数量: 82
  • 博客积分: 2607
  • 博客等级: 少校
  • 技术积分: 785
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-14 15:23
文章分类

全部博文(82)

文章存档

2012年(4)

2010年(1)

2009年(2)

2008年(8)

2007年(34)

2006年(33)

我的朋友

分类: Mysql/postgreSQL

2012-06-10 00:20:05

直接加这行 启动不了

default-character-set=utf8

报错:

start mysql. The restart(8) utility is also available.
start: Job failed to start

参考:


这么写OK了: 

On MySQL 5.5 I have in my.cnf

[mysqld]
init_connect
='SET collation_connection = utf8_unicode_ci'
init_connect
='SET NAMES utf8'
character-set-server
=utf8
collation-server
=utf8_unicode_ci
skip-character-set-client-handshake

Result is

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

+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)

+----------------------+-----------------+
| Variable_name        | Value           |
+----------------------+-----------------+
| collation_connection | utf8_unicode_ci |
| collation_database   | utf8_unicode_ci |
| collation_server     | utf8_unicode_ci |
+----------------------+-----------------+
3 rows in set (0.00 sec)

阅读(792) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

最大行业软件2012-11-02 16:21:44

Agilent.Hfss.v5.6-ISO 1CD(专业 3D 高频系统全波电磁场模拟软件)

Agilent.89600.Vector.Signal.Analyzer.v8.0-ISO 1CD(频谱分析)

 

ANSOFT产品:

Ansoft HFSS v14.0 win32_64 Full-ISO 2CD(三维结构电磁场仿真软件)

 

Ansoft Maxwell 3D v15.0 Win32-ISO 1CD(电磁场分析软件)

Ansoft Maxwell 3D v15.01 Update Only Win32 1CD

Ansoft Maxwell 3D v15.0 Win64-ISO 1CD

Ansoft Maxwell 3D v15.01 Update Only Win64 1CD