So I tried it, and it works. Here's some notes.
mysql -u root -p mrbeardb —port=3306
References
- Linuxize - How to Connect to MySQL through SSH Tunnel
- https://linuxize.com/post/mysql-ssh-tunnel/
So I tried it, and it works. Here's some notes.
This is going to be a small blurb, on what I did to get this working.
Nothing out of the ordinary, really.And of course allow the user accounts to access mariadb remotely over the network.
Attention! I'm only doing this locally on a testing server! It's not a great idea to run mariadb connections remotely if you do not have to.
Hello, again!
This is just a small blog post on how to backup and restore a MariaDB server, without using MysqlDump, but by directly copying the files in /var/lib/mysql.
First of course we need to shutdown mariadb.
Copying files:
When putting things back, things start to go wrong1.
Copying the files to a new host, causes this:
So, if the below code works, than SELinux is causing the issue:
Now you added mysql_t to permissive, as shown by the below printout:
Turning it back to enforcing, means running:
We need to relabel the new /var/lib/mysql directory:
Checking the current file contexts:
I need to check out MariaBackup2 3, as a better solution for creating backups compared to mysqldump.