如何在centos中进入mysql命令行查看数据库支持字符集

55次阅读

在centos下输入如下命令进入mysql:

mysql -uroot -p

然后输入 password

查看数据库支持字符集:

MySQL [(none)]> SHOW VARIABLES LIKE ‘have_%’
-> ;

+————————+———-+
| Variable_name | Value |
+————————+———-+
| have_compress | YES |
| have_crypt | YES |
| have_dynamic_loading | YES |
| have_geometry | YES |
| have_openssl | DISABLED |
| have_profiling | YES |
| have_query_cache | YES |
| have_rtree_keys | YES |
| have_ssl | DISABLED |
| have_statement_timeout | YES |
| have_symlink | YES |
+————————+———-+

查找mysql文件或目录:

find / -name mysql

正文完
 0