Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File location for database created in MYSQL workbench

I created a database in MySQL Workbench, but I can't find where it is located.
I searched the xampp/mysql folder and found a db.opt folder, but nothing else.
I also checked programdata/mysql and programsX86/mysqlworkbench and found nothing.

like image 534
Steve N Avatar asked Dec 11 '14 06:12

Steve N


People also ask

Where is MySQL database file location?

Its a MySQL database configuration file. This is the main configuration file of MySQL server. This is found in the root directory where the installation is done. In this file, the user can find the location of data folder.

How do I find MySQL database in workbench?

To view the database created on MySQL Workbench, navigate to Database > Connect to Database . Choose an existing connection to connect to MySQL Server or create a new one. The database created will be as shown in the screenshot below.


2 Answers

  1. Open Workbench
  2. Open the appropriate MySQL connection (the one you used to create the database)
  3. Open the "Management" tab in the Navigator (left pane)
  4. Open "Server Status" under "Management" to view information about your MySQL server
  5. Note the "Data Directory" path on that page

This is where your recently created database lives.

like image 73
Philip Olson Avatar answered Oct 08 '22 02:10

Philip Olson


If you are using windows, you can found your mysql data in below directory. Suppose you have installed your mysql server in Programming files under C directory then your mysql data path should be.

C:\ProgramData\MySQL\mysql server version\data

In above directory you will get all created database folders with files.

like image 25
Altmish-E-Azam Avatar answered Oct 08 '22 02:10

Altmish-E-Azam