1. mysql安裝位置
whereis mysql
which mysql
/usr/bin/mysql纔是mysql的安裝目錄。在/etc/my.cnf中也可以查看
2. 數據存放位置
show global variables like "%datadir%";
3. 查看mysql字符編碼
show variables like '%char%';
whereis mysql
which mysql
/usr/bin/mysql纔是mysql的安裝目錄。在/etc/my.cnf中也可以查看
show global variables like "%datadir%";
show variables like '%char%';