I was lost in Linux this afternoon….trying to locate the mysql data. The database is hosted in an old machine with small harddisk capacity. This afternoon the harddisk was full and I tried to work out how much space was taken up by the mysql data. It took me a while to search for it in the Linux itself and also to search for help in google.
Eventually I found it. The mysql data is stored in the /var/lib/mysql directory.