Failing to locate my datbase file in /var/lib/mysql

Where do l locate maria db files , l ahve searched here in but the directory mysql is not there but
/lib/ is there .Where can l possibly locate the files , Am running ERPNext V15 on ubuntu 220.04

/var/lib/mysql

Can u explain little more that what are u trying to do?

Try bench --site (sitename) mariadb, then SHOW VARIABLES WHERE Variable_Name LIKE “%dir”;

That should show the database directory. In that directory there should be a folder that corresponds with the db_name found in your sites/(sitename)/site_config.json file.

1 Like