小白刚接触数据库,自己在慢慢琢磨。 请问在mac下 自己创建的数据库和表都是默认存在mac的什么路径下的 谢谢
用find -name查一下数据库名,不带后缀试试
嗯…如果你输入 您将看到类似 + - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - + | | Variable_name |值 + - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - + | datadir | | /路径/ /数据 + - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - + 但要手动访问它们,你需要管理员权限
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
/var/lib/mysql