zoukankan      html  css  js  c++  java
  • (6)树莓派安装数据库

    安装数据库

    apt-get install mysql-server

    默认没有密码 mysql

    use mysql;
    
    MariaDB [mysql]> update user set host = '%' where user = 'root';
    Query OK, 1 row affected (0.02 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    
    MariaDB [mysql]> select host, user from user;
    +------+------+
    | host | user |
    +------+------+
    | %    | root |
    +------+------+
    
    MariaDB [(none)]> grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;
    Query OK, 0 rows affected (0.00 sec)
    
    MariaDB [(none)]> flush privileges;
    Query OK, 0 rows affected (0.04 sec)
    
    
    exit
    
    service mysql restart  # 重启服务
    
  • 相关阅读:
    spark shuffle 机制
    hive explain 源码分析
    前端jQurey
    js-dom操作
    前端JS
    前端CSS
    Redis和MongoDB区别
    MySQL数据库备份
    MySQL索引
    python连接mysql服务端
  • 原文地址:https://www.cnblogs.com/Zidon/p/10188524.html
Copyright © 2011-2022 走看看