• CentOS 7使用yum安装MYSQL


    来源:https://typecodes.com/linux/yuminstallmysql5710.html

    wget -i http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
    yum -y install mysql57-community-release-el7-7.noarch.rpm
    yum -y install mysql-community-server
    systemctl start  mysqld.service

    使用YUM安装并启动MySQL服务后,MySQL进程会自动在进程日志中打印root用户的初始密码:
    [root@typecodes ~]# mysql -uroot -p
    Enter password:             #######输入默认的root密码后回车
    Welcome to the MySQL monitor.  Commands end with ; or g.
    Your MySQL connection id is 2
    Server version: 5.7.10
    
    Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
    
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    
    Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
    
    mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> exit
    Bye

      

  • 相关阅读:
    python网络编程--线程GIL(全局解释器锁)
    python网络编程--进程线程
    html之块级标签h系列,div
    html之head,base,meta,title
    可视化SNV安装
    MySQLdb模块的安装
    python之os模块
    python之时间函数
    python之路之正则表达式
    python之路 之open
  • 原文地址:https://www.cnblogs.com/xzlive/p/9184519.html
Copyright © 2020-2023  润新知