zoukankan      html  css  js  c++  java
  • centos8.0安装mysql8.0

    检查是否安装,如果安装则卸载

    rpm -qa|grep mysql
    rpm -e --nodeps
    

    下载rpm包仓库

    wget https://repo.mysql.com/mysql80-community-release-el8-1.noarch.rpm
    
    rpm -ivh mysql80-community-release-el8-1.noarch.rpm
    
    yum update
    
    yum install mysql-server
    
    systemctl start mysqld
    
    systemctl enable mysqld
    
    systemctl status mysqld
    
    systemctl enable mysqld.service
    
    mysql
    
    use mysql;
    
    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'tw369.com';
    
    FLUSH PRIVILEGES;
    
    mysql -uroot -p
    

    设置Mysql远程访问账户密码

    update user set host ="%" where user = "root"; 
    
    flush privileges;
    
  • 相关阅读:
    SSM整合redis
    正则表达式验证
    175. 组合两个表
    SQL高级教程2
    SQL高级教程1
    数据可视化
    SQL基础
    SQL函数
    数据分析
    python数据分析-连接mysql
  • 原文地址:https://www.cnblogs.com/littlewrong/p/14661707.html
Copyright © 2011-2022 走看看