1.概述:
举例:
查询用户
mysql> select user();
+--------------------+
| user() |
+--------------------+
| root@192.168.135.1 |
+--------------------+
显示当前所用数据库
mysql> select database();
+-------------+
| database() |
+-------------+
| djangotest1 |
+-------------+
mysql> select password("asdf");
+-------------------------------------------+
| password("asdf") |
+-------------------------------------------+
| *7F0C90A004C46C64A0EB9DDDCE5DE0DC437A635C |
+-------------------------------------------+
md5使用举例:
查看mysql数据库,用户信息,这种查看方式不用 use mysql,