zoukankan      html  css  js  c++  java
  • linux(centos6.9)下使用yum安装mysql,及启动MySQL等

    查看系统自带的mysql版本:rpm -qa | grep mysql

    卸载mysql:rpm -e mysql-libs-5.1.73-8.el6_8.x86_64 --nodeps

    1. 安装mysql 服务器端:

              yum -y install mysql-server mysql-devel

    2. 安装mysql客户端:

                       yum install mysql

    3. 启动mysql服务:

              service mysqld start或者/etc/init.d/mysqld start

    停止:

              service mysqld stop

    重启:

              service mysqld restart

    4. 创建root管理员:

              mysqladmin -u root password root

    5.登陆

    mysql -uroot -proot

    6.root权限

    GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "root";

    flush privileges;

    设置mysql的开机启动

    chkconfig --add mysqld

    chkconfig mysqld on

  • 相关阅读:
    HDU 4325 Contest 3
    HDU 4324 Contest 3
    HDU 4323 Contest 3
    HDU 4321 Contest 3
    HDU 4320 Contest 3
    HDU 4314 Contest 2
    HDU 4313 Contest 2
    HDU 4318 Contest 2
    12-----简单认识下margin
    11-----broder(边框)
  • 原文地址:https://www.cnblogs.com/mediocreWorld/p/11094703.html
Copyright © 2011-2022 走看看