Register for your free account! | Forgot your password?

You last visited: Today at 00:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



ini/sql

Discussion on ini/sql within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
ini/sql

is right that if you switch from mysql to ini your server gets more stable??? cuz it won't loose that connection thing between server & database?
Or is just waste of time to switch to ini?
Fish* is offline  
Old 04/01/2010, 12:40   #2
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 82
for people that don't know what they're doing, id say yes, since you'd wouldn't be vulnerable to SQL exploits & injections and SQL exceptions in the server.
ChingChong23 is offline  
Old 04/01/2010, 13:24   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Well im not gonna do it, i just wanted know, im changing the sockets and i made auto backup every XX:50, so the server won't crash, cuz is used to crash when the server been up around 1hour ^^
Fish* is offline  
Old 04/01/2010, 21:08   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by ChingChong23 View Post
for people that don't know what they're doing, id say yes, since you'd wouldn't be vulnerable to SQL exploits & injections and SQL exceptions in the server.
the only reason your vulnerable to sql exploits and injections is because there is a error in your sql format... stop saying ini is better.
PeTe Ninja is offline  
Old 04/01/2010, 21:24   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by PeTe Ninja View Post
the only reason your vulnerable to sql exploits and injections is because there is a error in your sql format... stop saying ini is better.
I would say sql is better and easier to use with management for database etc. But ini is just quick setup in some cases what ever.
I would rather like to manage a sql database, then an ini database sine i got no experience with ini XD
Fish* is offline  
Old 04/01/2010, 21:44   #6
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 82
Quote:
Originally Posted by PeTe Ninja View Post
the only reason your vulnerable to sql exploits and injections is because there is a error in your sql format... stop saying ini is better.
remember the people were dealing with here, nothing can go wrong using flat-file, having the sql causes more problems for people that don't know what they're doing. normally i suggest using sql, but in his case flatfile will be fine.

His source is vulnerable to SQL injection anyway.
ChingChong23 is offline  
Old 04/01/2010, 22:03   #7
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by PeTe Ninja View Post
the only reason your vulnerable to sql exploits and injections is because there is a error in your sql format... stop saying ini is better.
Carefull with what you're saying, do you want to imply mysql is better?
ImmuneOne is offline  
Old 04/02/2010, 00:01   #8
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by ChingChong23 View Post
remember the people were dealing with here, nothing can go wrong using flat-file, having the sql causes more problems for people that don't know what they're doing. normally i suggest using sql, but in his case flatfile will be fine.

His source is vulnerable to SQL injection anyway.
I know what im doing, just asked ^^ to be sure if i should change XD
But im cool with sql at the moment as i fixed some troubles ^^ but just wanted to know if there was errors in ini and so XD
So ty ;D
Fish* is offline  
Old 04/02/2010, 00:58   #9
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by ImmuneOne View Post
Carefull with what you're saying, do you want to imply mysql is better?
nope im just implying that they are equal

some have better benefits but still equal.
PeTe Ninja is offline  
Old 04/02/2010, 07:26   #10
 
LetterX's Avatar
 
elite*gold: 20
Join Date: May 2007
Posts: 1,125
Received Thanks: 332
Quote:
Originally Posted by grillmad View Post
is right that if you switch from mysql to ini your server gets more stable??? cuz it won't loose that connection thing between server & database?
Or is just waste of time to switch to ini?
Only reason why the MySQL connection would die/close is because the server is not using it correctly.
LetterX is offline  
Old 04/02/2010, 09:42   #11
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by LetterX View Post
Only reason why the MySQL connection would die/close is because the server is not using it correctly.
True
Fish* is offline  
Old 04/02/2010, 14:41   #12
 
elite*gold: 0
Join Date: Dec 2009
Posts: 53
Received Thanks: 3
Quote:
Originally Posted by LetterX View Post
Only reason why the MySQL connection would die/close is because the server is not using it correctly.
That is not the only reason.
Viscount S is offline  
Old 04/02/2010, 14:45   #13


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by Viscount S View Post
That is not the only reason.
Atually, the way the connection should be used is that its opened, makes 1 query and then closes again, theres no requirement for the connection to be kept open while its not being used, so the connection should never really be open long enough for it to die, because the server should close it when its finshed with it.
Korvacs is offline  
Old 04/02/2010, 14:58   #14
 
elite*gold: 0
Join Date: Dec 2009
Posts: 53
Received Thanks: 3
Quote:
Originally Posted by Korvacs View Post
Atually, the way the connection should be used is that its opened, makes 1 query and then closes again, theres no requirement for the connection to be kept open while its not being used, so the connection should never really be open long enough for it to die, because the server should close it when its finshed with it.
You're right, and with the quick connection time that the MySQL servers (and most likely others) have, speed shouldn't be an issue, but if you create a new connection every time a thread needs one, isn't that adding overhead in terms of (wasteful) resource usage, and unpredictable behavior under load?

That's what I've gathered by looking into connection pooling (which may or may not be useful in the context of a CO2 PServer) .
Viscount S is offline  
Old 04/02/2010, 15:56   #15


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by Viscount S View Post
You're right, and with the quick connection time that the MySQL servers (and most likely others) have, speed shouldn't be an issue, but if you create a new connection every time a thread needs one, isn't that adding overhead in terms of (wasteful) resource usage, and unpredictable behavior under load?

That's what I've gathered by looking into connection pooling (which may or may not be useful in the context of a CO2 PServer) .
I have a single thread which deals with all database queries and the connection itself, so there isnt really an issue there for me.
Korvacs is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 00:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.