Enargy, Posted February 15, 2015 Share Posted February 15, 2015 Hey, I wonder who is the safest database to save data, if SQLite or MySQL(or need to learn both ). the issue is that I want to learn to use one of these two options to create my own systems or something else. Thnx. Link to comment
MIKI785 Posted February 15, 2015 Share Posted February 15, 2015 What do you mean safest? They're both SQL so they're both vulnerable to SQL injection. Link to comment
Enargy, Posted February 15, 2015 Author Share Posted February 15, 2015 What do you mean safest? They're both SQL so they're both vulnerable to SQL injection. I mean if they have something different, they are the same or another is more "complete". Link to comment
JR10 Posted February 15, 2015 Share Posted February 15, 2015 They have their differences. A simple Google search will provide you with the main ones. Link to comment
Gallardo9944 Posted February 15, 2015 Share Posted February 15, 2015 MySQL should be more reliable because it doesn't depend on your MTA server. You can configure the way your MySQL runs, in opposite to SQLite in MTA. You can access the same data from MySQL on 2 or more servers, MTA's SQLite can't be shared unless you edit db files via your code. This list can go on forever though. Link to comment
Callum Posted February 15, 2015 Share Posted February 15, 2015 MySQL should be more reliable because it doesn't depend on your MTA server. You can configure the way your MySQL runs, in opposite to SQLite in MTA. You can access the same data from MySQL on 2 or more servers, MTA's SQLite can't be shared unless you edit db files via your code. This list can go on forever though. SQLite is more reliable than MySQL since it's nothing more than a file, whereas MySQL is a service. SQLite is a lot more convenient and easier to manage than MySQL, but I wouldn't use it in a large-scale production environment, or an environment where you want multiple services to access it. Link to comment
Ryancit2 Posted February 16, 2015 Share Posted February 16, 2015 Main difference is: SQLite = offline. MySQL = online. Now if we go in details, you'll see what difference is: Data value types of SQLite: NULLINTEGER REAL TEXT BLOB Data value types of MySQL: TINYINTSMALLINT MEDIUMINT INT or INTEGER BIGINT FLOAT DOUBLE, DOUBLE PRECISION, REAL DECIMAL, NUMERIC DATE DATETIME TIMESTAMP TIME YEAR CHAR VARCHAR TINYBLOB, TINYTEXT BLOB, TEXT MEDIUMBLOB, MEDIUMTEXT LONGBLOB, LONGTEXT ENUM SET That clearly says MySQL can store data values with more efficient types, those which goes perfectly with your data value. Though, you wont understand all of those types, check that on google by " in Sqlite/MySQL". Another thing is that MySQL is used by most professionals, and mostly to connect websites with your object-oriented programming. While we see, SQLite is more handy for starters, can save every data as same as MySQL does, its just that MySQL can store it under more categories. Also, SQLite is used in (most) android apps, i'm not sure about iOS. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now