Skip to main content
Common Reference

The tungsten_get_mysql_datadir Command

The tungsten_get_mysql_datadir command will gather and display actual running values for the data directory (datadir) checked against multiple sources (running mysql value, mysqld default value and the tungsten configuration) and then resolve any sym-links to the physical destination.

Usage
tungsten_get_mysql_datadir [option]

Where:

OptionDescription
--debug
Aliases: -d
--flavor
Aliases: -f
Also print out the MySQL server type as a tag in lower case (i.e. mysql, percona or mariadb)
--flavorful
Aliases: -F
Also print out the MySQL server type (i.e. MySQL Community, Percona Server or MariaDB Server)
--help
Aliases: -h
Show help text.
--verbose
Aliases: -v

The sudo command is used along with the which command to locate the mysqld executable so as to gather the defaults.