• Advertisement
Sign in to follow this  

Question about program with a backend database

This topic is 2630 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Let's say I write a program in C++ - a system for a videoshop. I write the program and the backend database using mySQL.

Now, if I wanted to install this on another machine does MySQL need to be installed?

My other question is this... when you create tables with data in MySQL, where on earth does this get stored on the machine? I'm working on a macbook and confuzzled!

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Now, if I wanted to install this on another machine does MySQL need to be installed?
The program needs to connect to some, properly set up, MySQL database. If you aren't connecting to a remote database, then MySQL must be installed on the local machine.

Quote:
when you create tables with data in MySQL, where on earth does this get stored on the machine?
Files on the machine. They are managed by MySQL.

Share this post


Link to post
Share on other sites
Yes, MySQL also needs to be installed.

I think SQLite can built into your exe and just use one flat file for database storage, thus making a nicer alternative if you want to simplify installation process.

MySQL stores databases in files placed wherever you told it to place itself when installing MySQL. It has it's own structure, loosely speaking, one table is stored in one or more files.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement