首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

redhat5下安装MySQL-5.6,默认密码无法进入的解决方法

2013-08-13 
redhat5下安装MySQL-5.6,默认密码无法进入的解决办法redhat5下安装MySQL-5.6,默认装完没有设置mysql的密码

redhat5下安装MySQL-5.6,默认密码无法进入的解决办法
    redhat5下安装MySQL-5.6,默认装完没有设置mysql的密码,按理说应该mysql的root用户的默认密码为空,但是默认空密码无法进入,报错信息如下:

[root@localhost /]# vi /usr/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][color=red]   skip-grant-tables  skip-networking[/color]# 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 = .....



重新启动:/etc/init.d/mysql restart
启动OK后,mysql的root用户默认空密码可以正常进入。

热点排行