Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> APB Stats Problems
post May 23 2010, 03:36 PM
Post #1

Title:   Gameserver Operator
Group: Bluehell Staff
In-game: oxi


Due to a loss of connection between the ranks bot and the database at a critical time all of the monthly and ongoing rank data was lost.

I have restored the data from an older backup but unfortunately this is a lot older than I would have liked.
User is online!Profile CardPM
Go to the top of the page
+Quote Post
post May 31 2010, 06:42 AM
Post #2

Title:   Coding
Group: RA2:AR Staff
In-game: danpaul88


Pro Tip

CODE
START TRANSACTION

-- DO SQL STUFF --

COMMIT



Using transactions will ensure that losing connection partway through an update will not result in a fucked up database because the DBMS will automatically roll back the transaction if it is not committed before the connection loss. If using SQL Server instead of MySQL use 'BEGIN TRANSACTION' instead of 'START TRANSACTION'.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 3rd September 2010 - 04:36 PM