Current directory on mysql shell point to the $datadir.
On mysql shell: SHOW VARIABLES LIKE 'datadir';
On bash: pwdx $(pidof mysqld)