• CentOS6.8 x64 安装MySQL 5.6.38 rpm方式


    Xshell for Xmanager Enterprise 5 (Build 1015)
    [root@LS-Min ~]# rpm -qa | grep mysql
    mysql-libs-5.1.73-8.el6_8.x86_64
    [root@LS-Min ~]# rpm --nodeps -e mysql-libs-5.1.73-8.el6_8.x86_64
    Complete!
    [root@LS-Min download]# rpm -ivh MySQL-server-5.6.38-1.el6.x86_64.rpm 
    warning: MySQL-server-5.6.38-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
    error: Failed dependencies:
        libnuma.so.1()(64bit) is needed by MySQL-server-5.6.38-1.el6.x86_64
        libnuma.so.1(libnuma_1.1)(64bit) is needed by MySQL-server-5.6.38-1.el6.x86_64
        libnuma.so.1(libnuma_1.2)(64bit) is needed by MySQL-server-5.6.38-1.el6.x86_64
    [root@LS-Min download]# yum install numactl
    ...                                                           
    Complete!
    [root@LS-Min download]# rpm -ivh MySQL-server-5.6.38-1.el6.x86_64.rpm 
    
    A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
    You will find that password in '/root/.mysql_secret'.
    
    You must change that password on your first connect,
    no other statement but 'SET PASSWORD' will be accepted.
    See the manual for the semantics of the 'password expired' flag.
    
    Also, the account for the anonymous user has been removed.
    
    [root@LS-Min download]# rpm -ivh MySQL-client-5.6.38-1.el6.x86_64.rpm 
    ...
    [root@LS-Min download]# /etc/init.d/mysql start
    ...
    SUCCESS!
    [root@LS-Min ~]# /etc/init.d/mysql stop
    Shutting down MySQL.. SUCCESS!
    [root@LS-Min ~]# /etc/init.d/mysql start

    Starting MySQL. SUCCESS!
    [root@LS-Min download]# vim /root/.mysql_secret
    ...
    [root@LS-Min download]# mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or
    ...
    mysql> exit
    [root@LS-Min download]# mysqladmin -u root -p password 'hik12345+'
    Enter password:
    Warning: Using a password on the command line interface can be insecure.
    [root@LS-Min download]# mysql -u root -p
    Enter password: 
    ...

     

     [root@LS-Min ~]# chkconfig --add mysql
     [root@LS-Min ~]# chkconfig --list mysql
      mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
     [root@LS-Min ~]# service mysql start
      Starting MySQL. SUCCESS!
     [root@LS-Min ~]# service mysql stop
      Shutting down MySQL.. SUCCESS!

     

     

  • 相关阅读:
    SCU 4439 Vertex Cover|最小点覆盖
    SCU 4438 Censor|KMP变形题
    BZOJ 2152: 聪聪可可|点分治
    暑假集训-8.18总结
    AcWing 252. 树|点分治
    Proj THUDBFuzz Paper Reading: Field-aware Evolutionary Fuzzing Based on Input Specifications and Vulnerablity Metrics
    Proj THUDBFuzz Paper Reading: Semantic Fuzzing with Zest
    Proj THUDBFuzz Paper Reading: Smart Greybox Fuzzing
    Proj THUDBFuzz Paper Reading: Language-Agnostic Generation of Compilable Test Programs
    Proj THUDBFuzz Paper Reading: Fuzzing JS Engines with Aspect-preserving Mutation
  • 原文地址:https://www.cnblogs.com/ahjx1628/p/7858094.html
Copyright © 2020-2023  润新知