Alright, this has been requested, so here it is
Technically, it isn’t „hacking“ per-se but it can be used along with Webshell in order to dump the database of a website.
So, the syntax:
mysqldump -u [username] -p [database name] > [database name].sql
That will dump the entire database.
mysqldump -u [username] -p [database name] --tables [table names] > [database name].sql
That will dump specified tables from a database.
All you need to get is the database name, user name and password.
Also, as a final note, the dumped database can be found as an SQL file in the directory of which it was performed