mysql 5.5 启动_mysql 5.5.28与mysql5.6.17 配置启动区别

从mysql.com下载了一个最新的mysql.5.6.17后安装后,因原机器安装过mysql,启动总是报错

f1f20fb8a42dd9a5d55bc686ef52d0b8.png

检查了一下mysql的原安装目录里面有个一新的myql-new.conf。

对比了下原/etc/my.conf和mysql-net.conf在mysql.5.6.17这个版本下有很大不同

原my.conf配置内容

[[email protected] bin]# cat /etc/my.cnf

[mysqld]

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

user=mysql

# Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0

[mysqld_safe]

log-error=/var/log/mysqld.log

pid-file=/var/run/mysqld/mysqld.pid

mysql_enable="YES"

mysql_args="--skip-grant-tables --skip-networking"

新配置的my.conf

[[email protected] mysql]# cat /etc/my.cnf

# For advice on how to change settings please see

# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data

# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.

# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging

# changes to the binary log between backups.

# log_bin

# These are commonly set, remove the # and set as required.

# basedir = .....

# datadir = .....

# port = .....

# server_id = .....

# socket = .....

# Remove leading # to set options mainly useful for reporting servers.

# The server defaults are faster for transactions and fast SELECTs.

# Adjust sizes as needed, experiment to find the optimal values.

# join_buffer_size = 128M

# sort_buffer_size = 2M

# read_rnd_buffer_size = 2M

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

将安装目录下面的这个文件覆盖后

重启mysql

[[email protected] bin]# ./mysqld_safe --user=mysql &

[1] 30069

[[email protected] bin]# 140518 11:21:42 mysqld_safe Logging to ‘/usr/local/mysql/data/nginx01.err‘.

140518 11:21:42 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

[[email protected] bin]# netsat -atnp|grep 3306

-bash: netsat: command not found

[[email protected] bin]# netstat -antp|grep 3306

tcp        0      0 :::3306                     :::*                        LISTEN      30173/mysqld

启动成功

原文:http://wangsheng219.blog.51cto.com/2147741/1413102

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值