Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the MySql table data stored (Mac)?

I am working on syncing my MySql database on two computers (using dropbox with symlinks). The current database information is stored here: /usr/local/mysql/data

When syncing the db, only the database displays along with the table names, but the data does not display. Is there another place that data is stored?

like image 858
Jason Avatar asked Nov 29 '22 03:11

Jason


1 Answers

well... if you type

show variables where Variable_name ='datadir';

you will see something like

+---------------+---------------+
| Variable_name | Value         |
+---------------+---------------+
| datadir       | /path/to/data |
+---------------+---------------+

But to access them manually, you'll need administrator privileges

like image 119
Juan Avatar answered Nov 30 '22 18:11

Juan