一 操作命令
[root@bonc mysql]# whereis my.cnf
my: /etc/my.cnf
[root@rhel6lhr mysql]#
二查看版本
[root@172-16-26-29 ~]# mysql -V
mysql Ver 14.14 Distrib 5.7.29, for linux-glibc2.12 (x86_64) using EditLine wrapper
本文展示了如何在Linux环境下使用命令行查找MySQL配置文件的位置及查看MySQL服务器版本的具体操作。
[root@bonc mysql]# whereis my.cnf
my: /etc/my.cnf
[root@rhel6lhr mysql]#
[root@172-16-26-29 ~]# mysql -V
mysql Ver 14.14 Distrib 5.7.29, for linux-glibc2.12 (x86_64) using EditLine wrapper

被折叠的 条评论
为什么被折叠?