473,378 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Is it possible to have MySQL data on a mapped network drive?

AMD
Hi,

I would like to have MySQL use a mapped network drive. I'd like to do
this in case there is a failure of the mysql machine, I can just replace
it with a new machine pointing to the same network drive. Is this
possible at all?

Thanks,

Andre M. Descombes
Jul 20 '05 #1
2 11094
AMD wrote:
I would like to have MySQL use a mapped network drive. I'd like to do
this in case there is a failure of the mysql machine, I can just replace
it with a new machine pointing to the same network drive. Is this
possible at all?


Perhaps it's possible in theory, but it is fraught with hazards:

- The network link between the MySQL server and the file server can be
interrupted more easily than a hard disk interface. Your application
needs to detect when the database disappears intermittently and fail or
retry gracefully.

- There is a performance penalty of doing I/O over a network instead of
to a local disk? Network congestion, latency differences, packet loss
rates, delays from moving packets between different subnets, etc. can
make even gigabit networks have a much lower effective data rate than an
ordinary ATA/100 bus.

- The most serious risk is that another MySQL server will map the same
network drive and write to the same MySQL databases. This is virtually
certain to corrupt the databases, because the two MySQL servers have no
way to know when another MySQL service is using that data, no way to
coordinate their changes, and they cannot ensure consistency in the
database. It's likely that the two services will overwrite each other's
work in ways that corrupt the database.

Instead of using mapped drives, I recommend keeping the database storage
local to the host running the MySQL service, taking frequent backups of
the database, and transfer those backups to the file server. That way
if the host running MySQL has a failure, your backup files are safe.
You can use the most recent backup to restore the databases on another
host running MySQL, which also uses local storage for its live databases.

Also, MySQL has a replication solution for automatically keeping a
second database continuously synchronized with the first database. Read
the chapter on Replication in MySQL at
http://dev.mysql.com/doc/mysql/en/Replication.html.

Regards,
Bill K.
Jul 20 '05 #2
On Tue, 04 Jan 2005 15:05:44 +0100, AMD <am*********@qualicontrol.com>
wrote:
Hi,

I would like to have MySQL use a mapped network drive. I'd like to do
this in case there is a failure of the mysql machine, I can just replace
it with a new machine pointing to the same network drive. Is this
possible at all?

Thanks,

Andre M. Descombes


Yes, but this is an undesirable configuration. I seem to recall MySQL
recommending against it. Generally this has performance impacts in
addition to problems if the shares aren't available at when the MySQL
instance does it startup checks.

Dwight Ingersoll
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: moonriver | last post by:
I write a program accessing files in network drive o:. It is doable as a standalone application. However, if it is running under windows service, the following exception will appear: 13/07/2004...
2
by: giloosh99 | last post by:
Hello, Im grabbing tables via VB code using visual foxpro ODBC drives. The tables directory is in a mapped network drive. The code works fine and does the job, however if the computer is idle for...
5
by: Niloday | last post by:
Hi All, I am trying to access a mapped network drive from a service that I have created. The service needs to create/delete folders/files on a network drive. When I tried to connect to a...
2
by: Michal Valent | last post by:
Hello, if I try to read a file on the mapped network drive, this error apears: Logon failure: unknown user name or bad password. How to set up permissions for IUSR_MACHINENAME on the mapped...
0
by: Kruq | last post by:
Hello, I have a problem. In development environment we have few dev workstations and one development database. Application allows to upload some resources to HDD and store its descriptors into...
2
by: createdbyx | last post by:
I am trying to make a file sync utillity to sync files between my laptop and my desktop pc. On my desktop machine (xp pro sp2) I have shared my "Visual Studio Projects" folder using windows simple...
1
by: Piyush Trivedi | last post by:
I am experiencing difficulty to access a mapped network drive in an ASP.NET application. While using the .Net framework v 1.1 implementation of System.IO.Directory.Exists() to check if the...
0
abdoelmasry
by: abdoelmasry | last post by:
Hi Profs I need help to rename Mapped network Drive i use patch file that contains the command SUBST to set map network drives for our domain clients. the mapped network drive is already...
2
by: cleary1981 | last post by:
Hi All, I have a windows 2003 server and a number of machines runing XP. I have a vigor 2820 router as my DHCP server for a range 160-200. Most of my PC's are on fixed IP outside this range with...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.