How do I open a Rails Mysql database in Mysql Workbench?

mrudult

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.

paolobueno

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

how to open multiple model/database in mysql workbench

How do I Connect to My Database Server Using MySQL Workbench?

How do I install MySQL workbench?

mysql-workbench, how do I write a bash file command as to launch and open a SQL script to a query tab?

How do I modify the mysqldump command arguments in MySQL Workbench 8.0.14?

How do I enlarge an EER Diagram in MySQL Workbench?

How do I associate a schema with a connection in MySQL Workbench 6.2

How to open mysql workbench in browser like phpmyadmin?

How to create a local database for MYSQL workbench?

MySQL Workbench test connection using known good online open database

How do I get my forgotten MySQL password from MySQL Workbench on macOS?

How do I save a timestamp to a mysql database?

How do I connect to mysql database with dbplyr

How do I remove a MySQL database?

How to take MySQL database backup using MySQL Workbench?

How do I migrate MySQL to PostgreSQL in Rails

How can I group MySQL Workbench connections?

MySQL Workbench cannot open on Mac

How do I use Ruby to connect to a MySql database outside of Rails as a scripting language

how to insert/edit data into database(s) which i created in CLI using mysql workbench?

No Synchronize Model with Database in Mysql Workbench

Create a new database with MySQL Workbench

Modify database schema with MySQL Workbench

Removed records in a database (mysql workbench)

How to open mysql workbench tab which are closed without saving by mistake?

How to open a new connection in mysql-workbench from the command line

How to install MySQL workbench?

Connect to Azure MySQL Database using MySQL Workbench

Why can't I connect to my MySQL database using MySQL Workbench?