|
You last visited: Today at 00:49
Advertisement
ini/sql
Discussion on ini/sql within the CO2 Private Server forum part of the Conquer Online 2 category.
04/01/2010, 12:11
|
#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?
|
|
|
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.
|
|
|
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 ^^
|
|
|
04/01/2010, 21:08
|
#4
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
Quote:
Originally Posted by ChingChong23
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.
|
|
|
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
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
|
|
|
04/01/2010, 21:44
|
#6
|
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 82
|
Quote:
Originally Posted by PeTe Ninja
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.
|
|
|
04/01/2010, 22:03
|
#7
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Quote:
Originally Posted by PeTe Ninja
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?
|
|
|
04/02/2010, 00:01
|
#8
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by ChingChong23
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
|
|
|
04/02/2010, 00:58
|
#9
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
Quote:
Originally Posted by ImmuneOne
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.
|
|
|
04/02/2010, 07:26
|
#10
|
elite*gold: 20
Join Date: May 2007
Posts: 1,125
Received Thanks: 332
|
Quote:
Originally Posted by grillmad
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.
|
|
|
04/02/2010, 09:42
|
#11
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by LetterX
Only reason why the MySQL connection would die/close is because the server is not using it correctly.
|
True
|
|
|
04/02/2010, 14:41
|
#12
|
elite*gold: 0
Join Date: Dec 2009
Posts: 53
Received Thanks: 3
|
Quote:
Originally Posted by LetterX
Only reason why the MySQL connection would die/close is because the server is not using it correctly.
|
That is not the only reason.
|
|
|
04/02/2010, 14:45
|
#13
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by Viscount S
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.
|
|
|
04/02/2010, 14:58
|
#14
|
elite*gold: 0
Join Date: Dec 2009
Posts: 53
Received Thanks: 3
|
Quote:
Originally Posted by Korvacs
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)  .
|
|
|
04/02/2010, 15:56
|
#15
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by Viscount S
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.
|
|
|
All times are GMT +1. The time now is 00:49.
|
|