Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I having trouble finding my mysql database files in Ruby on Rails project and opening it in MysqlWorkbench

This is my folder structure for a app

enter image description here

This is my database.yml

development:

  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: rawdy_development
  pool: 5
  username: root
  password:
  socket: /tmp/mysql.sock  

I'm not finding my mysql database file to open in MySqlWorkbench.
Help.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Unlike sqlite, your rails project doesn't contain the MySQL database files, the database.yml file only contains info on how to connect to the database. In that case it's trying to connect through a unix socket file.

I'm not sure if Workbench can connect that way, but most likely the database server is located on your own machine at localhost, port 3306, using username root and a blank password, you should configure Workbench to connect to that server and use database rawdy_development, instead of opening a database file.

share|improve this answer
    
does that means the files behavior depends on which database we choose? –  Mrudul_T Aug 21 '13 at 14:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.