I know this is a Ruby forum, but it has been the most helpful to me in
my attempt at learning to program and what not.
I want to use MySQL and SQL in conjunction with Ruby.
Basically, I'm totally lost with the database stuff. I installed MySQL,
but have no clue where to go from there.
1. Is the database already setup after installing, if not, how do I set
it up? Also, from what I've read, SQL is a programming language used to
manipulate a database. Where's a good beginner's tutorial for this?
2. Where do I write SQL? Is there any SQL-specific editor to do this?
I've been working on parsing some .CSV file to capture some basic
statistics about it. Now, I want to send these statistics into a
database to store so I can compare multiple .CSV files later on.
Any help is appreciated. Like I said, I'm totally new to databases and
just need to kick start.
Some other sites are out there, too. I like postgresql.org doc page
on the SQL manual the best, so far. It's not MySQL, but should be
relatively standard SQL.
I'm sure you can find tutorial info on a quick google search.
Ultimately, you might have to buy a book (which I absolutely hate
doing since I'm overstocked already :).
Todd
···
On Mon, Jun 30, 2008 at 11:27 AM, Justin To <tekmc@hotmail.com> wrote:
Hi,
I know this is a Ruby forum, but it has been the most helpful to me in
my attempt at learning to program and what not.
I want to use MySQL and SQL in conjunction with Ruby.
Basically, I'm totally lost with the database stuff. I installed MySQL,
but have no clue where to go from there.
1. Is the database already setup after installing, if not, how do I set
it up? Also, from what I've read, SQL is a programming language used to
manipulate a database. Where's a good beginner's tutorial for this?
2. Where do I write SQL? Is there any SQL-specific editor to do this?
I've been working on parsing some .CSV file to capture some basic
statistics about it. Now, I want to send these statistics into a
database to store so I can compare multiple .CSV files later on.
Any help is appreciated. Like I said, I'm totally new to databases and
just need to kick start.
I want to use MySQL and SQL in conjunction with Ruby.
Basically, I'm totally lost with the database stuff. I installed MySQL,
but have no clue where to go from there.
1. Is the database already setup after installing, if not, how do I set
it up? Also, from what I've read, SQL is a programming language used to
manipulate a database.
No, definitively not a programming language. SQL is a declarative language that describes sets.
2. Where do I write SQL? Is there any SQL-specific editor to do this?
Many editors support SQL editing / syntax highlighting. Chances are that your favorite text editor does as well - unless it's notepad.
I've been working on parsing some .CSV file to capture some basic
statistics about it. Now, I want to send these statistics into a
database to store so I can compare multiple .CSV files later on.
Often RDBMS have tools for loading mass data. I am not familiar with mysql but I'm sure you find in the docs.
Searching for "sql tutorial" or "sql introduction" surely will turn up useful stuff.
Ah,
If it is Mysql or *sql then i think that after you have tried them you
get yourself aquainted with ActiveRecord. Atleast from where i stand it
makes working with databases like Mysql a breeze.Try it.
···
On 6/30/08, Justin To <tekmc@hotmail.com> wrote:
Hi,
I know this is a Ruby forum, but it has been the most helpful to me in
my attempt at learning to program and what not.
I want to use MySQL and SQL in conjunction with Ruby.
Basically, I'm totally lost with the database stuff. I installed MySQL,
but have no clue where to go from there.
1. Is the database already setup after installing, if not, how do I set
it up? Also, from what I've read, SQL is a programming language used to
manipulate a database. Where's a good beginner's tutorial for this?
2. Where do I write SQL? Is there any SQL-specific editor to do this?
I've been working on parsing some .CSV file to capture some basic
statistics about it. Now, I want to send these statistics into a
database to store so I can compare multiple .CSV files later on.
Any help is appreciated. Like I said, I'm totally new to databases and
just need to kick start.
Justin, as far as Ruby and database interaction goes I would recommend an
ORM like ActiveRecord or Sequel, DataMapper looks cool too but doesn't work
well in Windows.
It might get you up and running faster if you looked into phpMyAdmin. It is
a php based "web tool" for interfacing with MySQL databases.
-Glen
···
On Mon, Jun 30, 2008 at 1:11 PM, Justin To <tekmc@hotmail.com> wrote:
Hi, thanks for the help.
I've been reading mysql.com, but I can't even seem to test if the server
is running.