What you need is to use either the built-in WPDB class/object, or set up your own database connection object to your database and query that.
]]>As the other answers say, HeidiSQL is a database edit program. It rund on your computer, not on wordpress, neither on the webserver. So it makes no sense to try to use HeidiSQL to display the data from the web server using it. But maybe a WP plugin like this could do what you need: https://www.ads-software.com/plugins/database-browser/
Best,
Philippe
]]>