mysql -uroot -p -e 'SHOW VARIABLES WHERE Variable_Name LIKE "%dir"'
if you want only the data dir use:
mysql -uroot -p -e 'SHOW VARIABLES WHERE Variable_Name = "datadir"'
mysql -uroot -p -e 'SHOW VARIABLES WHERE Variable_Name LIKE "%dir"'
if you want only the data dir use:
mysql -uroot -p -e 'SHOW VARIABLES WHERE Variable_Name = "datadir"'
本文标题:centos 7.2 查看mysql的database所在位置
本文链接:https://www.haomeiwen.com/subject/nwsxcxtx.html
网友评论