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

  • 相关阅读:
    MicXP程序爱好者
    cnblogs上的mysql学习心得
    iwebship 购物系统 PHP lamp环境
    可以购买的网址
    模板网址
    学习ecshop 教程网址
    ecshop数据库操作函数
    yzoj1568: 数字组合 题解
    yzoj1891 最优配对问题 题解
    yzoj1985 最长公共单调上升子序列 题解
  • 原文地址:https://www.cnblogs.com/xiaobin-hlj80/p/5189419.html
Copyright © 2011-2022 走看看