Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7693865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:11:16+00:00 2026-05-31T21:11:16+00:00

I am learning to use mysql for rails apps, and I finally have been

  • 0

I am learning to use mysql for rails apps, and I finally have been able to get my app up and running (sort of, for now). I managed to install mysql with homebrew, and then populated my database.yml file and ran rake db:create. Now I am able to run my rails server and navigate to my homepage of my app (previously I got a no database error).

So, now that it seems that the database(s) is created, where is it located? I was wondering, because I previously used sqlite3 and was able to see my development database file in app/db/development.db

I just want to understand in greater detail how mysql works in a rails context.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:11:18+00:00Added an answer on May 31, 2026 at 9:11 pm

    When using MySQL or other full server-based RDBMS systems instead of SQLite, you won’t have a database file created with your application. Instead, the database is stored inside the server’s running MySQL instance.

    Technically, there are files associated with the tables stored in the MySQL data directory, but their location isn’t relevant to your application, and in fact may not even be readable by your regular shell user account. By using a client/server RDBMS instead of a file-based one like SQLite, you effectively delegate all responsibilities(*) related to database storage to the RDBMS, decoupling data storage from your application.

    If you connect to your host’s MySQL server with a client, you’ll see the rails application databases listed with

    # Connect from the command line
    $ mysql -usomeusername -p
    
    # Execute  MySQL commands
    mysql> SHOW DATABASES;
    

    Will output something like:

    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | demo               |
    | demo_development   |
    | demo_test          |
    | mysql              |
    | test               |
    +--------------------+
    7 rows in set (0.13 sec)
    

    (*)Note – I’m referring to data model storage, not any additional file-based storage your application may use which is managed by Rails and your application code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just learning to use Services, and am sort of stuck. I have
I am learning to use mysql.So, I got some problems. I have three table
Hey. I'm currently learning to use MySql and have a couple of questions. 1)
I am learning to use GWT with App Engine in Eclipse. I included the
I have been just learning redis and node.js There are two questions I have
I have just started learning MySQL and am having trouble extracting matching flights from
I am in the process of learning MySQL and querying, and right now working
I've been learning some PHP and MySQL from a book that teaches you how
I am learning how to use setcookie, however, I couldn't get following line to
I am learning and have already set up a Ruby on Rails environment based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.