Now I’m studying Mysql syntax, but seems don’t use on ruby mysql?
Did you google for “ruby mysql”? What did you find?
Did you try “gem install mysql”? If so, did it install succesfully? If
not, show the error.
If it installed OK, did you try writing some code to use it? If it
didn’t work, what error message or problem did you see?
Note the mysql gem is a “low level” API: a thin wrapper around the C
mysql API. If you use it, your code will be tied to mysql only.
There are several higher-level APIs - e.g. ActiveRecord, Sequel,
DataMapper - which both decouple you from the underlying database, and
give higher-level abstractions to make your code shorter and simpler. If
you use one of these, you’ll need to install it in addition to the mysql
gem.
I write several ruby script and run them separate for difference data
type.
But now I should create a database to store them.
How do I store each result data into same database?
Now I’m studying Mysql syntax, but seems don’t use on ruby mysql?
From what you write it is not entirely clear whether you need an RDBMs
like MySQL at all. What data do you have and what do you want to do
with it after you have stored it? Or put differently: why do you want
to store it?
Cheers
robert
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.