mysql5.6基本信息查看

系统版本为redhat6.6

系统自带mysql的服务开启情况:
# service mysqld status

手动安装Mysql的服务开启情况:
# service mysql status

mysql5.6常规登录:
[root@ ~]#  mysql -uroot -p
Enter password:

查看当前用户:
mysql> select  user();
+----------------+
| user()         |
+----------------+
| root@localhost |
+----------------+
查看当前库的版本:
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.6.43    |
+-----------+
查看所有数据库:
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
| zabbix             |
+--------------------+

 

你可能感兴趣的:(MYSQL)