I want to migrate a MySQL/MariaDB database from my local box, where I use it for development, to the server that will actually use it in "production".
I'm totally new, so please bear with me. I'm asking for help because I don't even know where/what to look for what I need.
In general, this database, as well as the whole "project", is very simple, and basically serves educational purposes. The database has just one table and access to it has only a user (different than root). After being migrated to the remote server, I'm planning to access it (basically for monitoring) through phpMyAdmin, which will be allowed only to localhost (server's localhost) and thus I'll do that by redirecting traffic through ssh to my localhost.
Both my local box and the server run MariaDB under /var/lib/mysql. My question is: is it as simple as securely copying local database directory to the corresponding directory on the server? If not, how should I proceed?
Note: I only need to copy one table or database.
Note: I am running different versions.
Thanks for your patience.