CentOS 6.6 MySQL install

/*************************************************************************
 *                    CentOS 6.6 MySQL install 
 * 说明:
 *     在VPS上安装MySQL数据库,以供有些时候无聊使用。
 * 
 *                                     2016-11-26 深圳 南山平山村 曾剑锋
 ************************************************************************/

一、参考文档:
    【完整教程】centOS下通过yum安装配置mysql
        https://lvwenhan.com/web-back/371.html

二、MySQL安装、启动:
    1. 安装:
        yum -y install mysql-server mysql mysql-devel
        rpm -qi mysql-server
    2. 设置MySQL服务随系统启动自启动:
        chkconfig mysqld on
    3. 确认MySQL自启动:
        chkconfig --list mysqld
    4. 启动MySQL服务:
        /etc/rc.d/init.d/mysqld start
    5. 设置root密码:
        mysqladmin -u root password "your passwd"
    6. 远程登录:
        参考:《ERROR 1130: Host ’...′ is not allowed to connect to this MySQL server》
            http://www.cnblogs.com/zengjfgit/p/5897385.html
原文地址:https://www.cnblogs.com/zengjfgit/p/6103666.html