Connecting to Mariadb database

Please can I have an example of connecting to a maria/mysql database
I have tried many examples/tutorials to no avail.

If you don’t show what you’ve tried and how it failed, you won’t get an answer. We can’t guess which tutorials you’ve read. The only possible answer based on the information you’ve provided would be to send a link to a tutorial—but that wouldn’t help you, would it?

1 Like