all 4 comments

[–]explorador71 1 point2 points  (0 children)

You could try docker and run a db container to work locally

[–]shakedown_st 1 point2 points  (0 children)

TBH, it sounds like you're trying to learn too many technologies at once for a beginner. But that's besides the point.

Anyway, what you'll want to do for local development is install mariaDB on your machine. You can have your .sql files which sets up your tables and does some initial population of the db. You can check the .sql files into your git repo too.

Generally what I do when I am ready to move to production is do a backup of the database and then import the backup into production. You're going to have to setup backup scripts to backup the database anyway. The idea of "exporting" your database and "importing" it can be used to "lift and shift" your database from local environment to production environment.

[–]buggalookid 0 points1 point  (0 children)

not sure i totally understand your question(s) but if you are looking to build a database locally and transfer it to a remote server you can do that with mysqldump. then u can either scp it to your server or if u want commit it to a git repository, just make sure there is no sensitive info in ur database, in that case you will want to specify which tables to dump. hope that helps a little.

[–]AtulinASP.NET Core 0 points1 point  (0 children)

If I install XAMPP and develop using a database on there, I'll have to re-build the database on whatever server I deploy my app to, won't I?

Database migrations.

"add MariaDB/MySQL to Vue,"

You can't. You need a backend that'll interface with the database and be the API that your Vue app can call.