---
title: "ubuntu 12.04安装mysql5.6"
author: "hain"
date: "2013-03-08T23:59:29Z"
tags: []
categories: ["数据库"]
slug: "ubuntu-12-04-mysql5-6"
draft: false
lastmod: "2013-03-09T14:36:25Z"
id: 1826515
url: "https://hain.iteye.com/blog/1826515"
---


参照

http://www.4tm.biz/blog/2013/mysql-5-6-on-ubuntu-12-04-lts.html

安装一路ok，最后运行myql 命令的时候却出现：

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)错误
需要修改/etc/my.cnf即可

socket = /var/run/mysqld/mysqld.sock

更详细到一个安装：
http://my.oschina.net/winHerson/blog/112309
