Solved

How to copy and install manually Mysql database on Windows?

Posted on 2016-08-16
5
39 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 250 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 250 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

730 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