Step 1: you do it wrong
You are trying to install mysql server. This should be your first sign that something is wrong. Most server applications are designed to be installed on servers, not on clients. A noteworthy point in this is that server applications like to assume that they "own" the server. This is a giant no-no application for client applications.
Step 2: Make a decision, now that we are properly informed
Now that we have established that we are doing it wrong, we need to choose what to do. We have 2 options:
- Disconnect MySQL from the client database, such as SQLite or SQL Server Compact Edition.
- Hack server application installation issues.
I personally would recommend switching to SQLite (or the like) as soon as possible. This is the “right thing” and you won’t need to support hacks for years to come.
Step 3: you still want to hack MySQL because it probably seems easier.
You have been warned. Here are some of the things you need to know and mitigate:
- MySQL wants to install \ mysql into the program files. If the user has already installed MySQL. You will break everything
- You need to specify your version of MySQL to install in the user folder. I would recommend it as a subfolder of your application.
- MySQL wants to run as a service (and the service will most likely be called "mysql"). Again, if the user already has mysql, you will break everything.
- You will need to start your service under a different name.
- The MySQL server will most likely want to write files to Program Files \ etc.
- You will need to change the configuration so that it writes% APPDATA%, etc.
- MySQL will assume that it is always started by the same user. If you have 2 users on the computer who want to use your program, you will need to hack accordingly, either by starting MySQL as a local account (security flaws) or by installing a separate mysql for each user.
So, with all this in mind, I would say that it is best to configure xcopyable mysql
Orion edwards
source share