Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to copy and install manually Mysql database on Windows?

Posted on 2016-08-16
5
Medium Priority
?
56 Views
Last Modified: 2016-09-10
Hello,

I need the following scenario:

-I install MySql on a computer with the parameters I want  (on Windows)
-I create mysql users
-I create a database with tables and fill with data

When I finished the steps above I need to gather the minimum files of MySql which will run smoothly - without installing - on another computer.

So I will copy the respective directory with the mysql files on the target computer and use :
mysqld --install mysql
and NET START mysql so as to install and start it.

I intend to make my own Install application to do this.

The questions:
-What are the exact minimum files I need to gather for this?
-What should I be aware of?

Thank you
0
Comment
Question by:Member_2_7965240
  • 2
  • 2
5 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 41757715
you choose the "no install" package from here:
http://dev.mysql.com/doc/refman/5.7/en/windows-choosing-package.html
to get the mysql runnable on the target pc without "installing" it otherwise.
0
 
LVL 40

Assisted Solution

by:noci
noci earned 1000 total points (awarded by participants)
ID: 41764442
mysql users & databases can be created as usual using the mysql client command.
and adding the users.

C> mysql    ( optional arguments if needed  for username, host etc. )
mysql> grant all on *.* to 'user' identified by 'password';
mysql> flush privileges;
mysql> create database blah;
mysql> use blah
mysql> create table blahblah (id ....... etc.);

Or restore a .sql backup file using that as input to mysql.
0
 

Author Comment

by:Member_2_7965240
ID: 41764905
Guy Hengel: I think you misunderstood me.

As I wrote I don't want to install a "no install" package on the client's computer.

1.I need to install MySql on my computer
2.Then I configure the databases, my.ini etc.
3.Then I need to create the no installation archive of the minimum files I need
This way my client would have the exact copy of my database without installation

Thank you.
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1000 total points (awarded by participants)
ID: 41764917
minimal: the mysql folder as is
if you configure the data folder to be somewhere else than within mysql, that folder also.
nothing else, nothing less
0
 
LVL 40

Expert Comment

by:noci
ID: 41792471
Copy as is vs. Copy from backup.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Recursive SQL is one of the most fascinating and powerful and yet dangerous feature offered in many modern databases today using a Common Table Expression (CTE) first introduced in the ANSI SQL 99 standard. The first implementations of CTE began ap…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question