MySQL/MariaDB数据库的用户和权限管理

                                   作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

 

 

 

一.元数据数据库(mysql)

系统授权表(均在mysql数据库中):
  db 
  host 
  user:
    存放用户的表。   columns_priv   tables_priv   procs_priv   proxies_priv
MariaDB [yinzhengjie]> SELECT  user,host FROM mysql.user;        #查看MySQL实例安全初始化后的默认用户
+------+-----------+
| user | host      |
+------+-----------+
| root | 127.0.0.1 |
| root | ::1       |
| root | localhost |
+------+-----------+
3 rows in set (0.00 sec)

MariaDB [yinzhengjie]> 
MariaDB [yinzhengjie]> 
MariaDB [yinzhengjie]> SELECT user,host FROM mysql.user;        #查看MySQL实例安全初始化后的默认用户

相关文章:

  • 2022-01-22
  • 2021-12-31
  • 2021-12-05
  • 2021-12-29
  • 2021-11-25
  • 2021-06-20
  • 2022-02-08
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-11-26
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案