Solved

How to copy and install manually Mysql database on Windows?

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

729 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