If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > A newbie question regarding acces to a database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-21-03, 19:03
digital_storm digital_storm is offline
Registered User
 
Join Date: Dec 2003
Posts: 28
A newbie question regarding acces to a database

Hello!

I have never been working with databases before and I got a question
I wonder, I use a database where I stor 90 persons and their personalinformation an their tennisscores.
Is it possible for two or more people to read/write from/to the same database as long they are not working with the same post?
There is no heavy traffic so the probability that this occur is not big...but anyway.

If not, is there a way to handle this?

Thanks / Digital_storm
Reply With Quote
  #2 (permalink)  
Old 12-23-03, 20:53
pearl2 pearl2 is offline
Registered User
 
Join Date: Nov 2003
Location: Sinapore
Posts: 187
90 persons? I don't think that would be a problem at all for a database system like MySQL. I've used flat files to store about 2000-3000 lines of entries for a small web application and I don't remember encountering any major problems.

But it's good to start with a proper database system, however small the database might be.
Reply With Quote
  #3 (permalink)  
Old 12-24-03, 12:30
aus aus is offline
Registered User
 
Join Date: Oct 2003
Location: Denver, Colorado
Posts: 137
You don't want to assume that there will not be any edits to the same record at the same time. You need to take a look at how MySQL protects database integrity. For the MySQL way of doing things, check out http://www.mysql.com/doc/en/LOCK_TABLES.html and for the transactional way of doing things check out http://www.mysql.com/doc/en/COMMIT.html. It is better to take a few simple steps to protect the database integrity than to take the chance that you won't have to worry about database integrity.
Reply With Quote
  #4 (permalink)  
Old 12-24-03, 16:42
digital_storm digital_storm is offline
Registered User
 
Join Date: Dec 2003
Posts: 28
Hello!

Thank you!

Regards // Digital_storm

Quote:
Originally posted by aus
You don't want to assume that there will not be any edits to the same record at the same time. You need to take a look at how MySQL protects database integrity. For the MySQL way of doing things, check out http://www.mysql.com/doc/en/LOCK_TABLES.html and for the transactional way of doing things check out http://www.mysql.com/doc/en/COMMIT.html. It is better to take a few simple steps to protect the database integrity than to take the chance that you won't have to worry about database integrity.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On