Where are all WordPress database files located?

I want to monitor the database size of my WP site over time.

Basically I need the number that’s displayed when you check Tools > Site Health – Info tab, Directories and sizes – https://i.ibb.co/jDrYwJw/image.png

I gave up on `wp-cli`, spent too much time fixing errors relating to permissions.

My assumption is that it should be trivial to just add up all the file sizes and log them in a file.

Where are all WP database files located?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer