Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to copy and install manually Mysql database on Windows?

Posted on 2016-08-16
5
Medium Priority
?
47 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

688 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