zoukankan      html  css  js  c++  java
  • 2014 Centos 6 minimal 安装mysql5

    1.安装:#yum -y install mysql-server

    2.修改配置:#vi /etc/my.cnf

    暂时修改一下编码(添加在密码下方添加): default-character-set = utf8



    # chkconfig mysqld on  ← 设置MySQL服务随系统启动自启动
    # chkconfig –list mysqld  ← 确认MySQL自启动mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off  ← 如果2–5为on的状态就OK

    #service mysqld start     (# /etc/rc.d/init.d/mysqld start也可以)

    mysql -uroot -p
    select user,host,password from mysql.user
    update mysql.user set password=password('123456') where user='root';
    select user,host,password from mysql.user;
    exit 

    service mysql restart;

    AllowOverride

    netstat -ntlp

  • 相关阅读:
    hdu 1074
    hdu 4091
    hdu 4422
    hdu 3940
    hdu 2831
    hdu 1172
    hdu 3732
    hdu 1250
    hud 2073
    IOS socket基于tcp/udp的通信
  • 原文地址:https://www.cnblogs.com/shher/p/3887040.html
Copyright © 2011-2022 走看看