zoukankan      html  css  js  c++  java
  • Create User

    Create User


    MariaDB [(none)]> CREATE USER 'DBAdmin'@'localhost' IDENTIFIED BY 'mypasswd';
    Query OK, 0 rows affected (0.00 sec)

    MariaDB [(none)]> CREATE USER 'tdtc2014'@'localhost' IDENTIFIED BY 'qazxsw';
    Query OK, 0 rows affected (0.00 sec)

    MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'DBAdmin'@'localhost' WITH GRANT OPTION;
    Query OK, 0 rows affected (0.00 sec)

    MariaDB [(none)]> GRANT SELECT,INSERT,UPDATE,DELETE ON carnumber.* TO 'tdtc2014'@'localhost';
    Query OK, 0 rows affected (0.00 sec)

    MariaDB [(none)]> flush privileges;
    Query OK, 0 rows affected (0.00 sec)

    MariaDB [(none)]> show grants for 'DBAdmin';
    +-----------------------------------------------------------------------------------------------------------------------------------+
    | Grants for DBAdmin@%                                                                                                              |
    +-----------------------------------------------------------------------------------------------------------------------------------+
    | GRANT ALL PRIVILEGES ON *.* TO 'DBAdmin'@'localhost' IDENTIFIED BY PASSWORD '*8640888BFB179C50EF0B4DE12251E66B4FB18A77' WITH GRANT OPTION |
    +-----------------------------------------------------------------------------------------------------------------------------------+
    1 row in set (0.00 sec)

    MariaDB [(none)]> q
    Bye

  • 相关阅读:
    Mysql 小技巧
    关于提交form不刷新的问题
    取消超链接点击默认事件
    JS获取地址栏参数
    Maven 手动添加 JAR 包到本地仓库
    Mysql函数instr、locate、position VS like
    阿里巴巴常考面试题及汇总答案
    JS跳转action
    Struts2使用ModelDriven后JSON数据返回不正确
    简单的使用AngularJS的解析JSON
  • 原文地址:https://www.cnblogs.com/xiaobin-hlj80/p/5189419.html
Copyright © 2011-2022 走看看