I worked with MySQL database but since I work with Rails I understand that I must use SQLite. Now I have two questions :
1 – Now I have MySQL in my computer , If I install SQLite , will any problems happen? For example are there any conflicts between them?
2 – What differences do they have in syntax ?
From this question..
SQLite is used primarily for development purposes only because it is quite simple to setup a database without much frustration, however it is certainly less efficient in terms of concurrency (which is highly likely for web applications) than something like MySQL. So regardless if you use SQLLite in development or not, it is highly advisable to use MySQL (or something equivalent) in production.
For completeness sake, SQLite is also used in “all in one package” software (such as mobile development), in which you can easily bundle a SQLite file with your application.
As stated on SQLite Website:
and
In terms of the benefits with Ruby, there really isn’t much benefit as libraries/ORMs (i.e. Active Record) really abstract the differences between the two systems to make a consistent access layer in a single wrapper.
Check this question from stackoverflow
And check this Google.com 🙂
Read this
The question of when SQLite should be used and when MySQl should be used has come up again and again. To know when and where it is appropriate to use either SQLite or MySQL databases management systems, it is first and foremost important to know what the difference is between them, if at all there is any difference.
In a nutshell, SQLite is an Open Source library that implements a self-contained transactional SQL database engine which requires no server and works on little or no configuration. MySQL on the other hand is also and Open Source Relational Database Management System.
Diving right into the task of answering this question, I have provided an itemized list of some the things SQLite is capable of doing well and I have compared the same with MySQL
SQLite is:
great enough to use for databases you would only need on a temporary basis or for test purposes
suitable for using on small to medium website. These are websites with average 100K or less hits per day.
MySQL is:
good for creating temporary databases as well as for test purposes. This would only be practical if you have the MySQL database server and client already set up
quite suited for managing users and their permissions
With these tips, I sure hope they are a competent guide to shove you in the right direction when the choice come between choosing between SQLite or MySQL for your next project.
More edits:–
Follow these guides to learn rails.
http://pragprog.com/book/rails4/agile-web-development-with-rails
http://railsforzombies.org/
http://www.amazon.com/dp/0596518773/
http://railscasts.com/
http://guides.rubyonrails.org/
Quick solution for using mysql. I am assuming u are using rails 3, Add
in your gem file and run
and replace your database.yml file with this..
I hope his answer make sense for you. Now a better quick tip for you. start using google.