MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 10th, 2000, 06:00 AM
mohamed mohamed is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Kuwait
Posts: 47 mohamed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
I used to write CGI program that insert data into files. What I used to do was open the file, lock it, write to it, and then unlock it. If another user tries to insert something into the file while it's locked then tough luck. That's why I wrote a loop that would try writing to file a few times before quiting.

With MySql, I am inserting and updating data to the same database, but I have no idea how to resolve multiple users conflict. Is that done automatically?

What happens if two or more users try to insert into the database at the same time? What happens if they try to update a record at the same time?

Thank you.

Reply With Quote
  #2  
Old September 10th, 2000, 10:30 AM
RyanP
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
i believe that mysql actions occur simultaneously, meaning that many users can be inserting data at the same time without a problem, and in the case of an update, the last action is the one that is stored

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Simple Quesiton: What is the difference between a regular file and a database?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT