[英]Recovering data from old MySQL Database into a new one Mac OSX
I have a full data folder which includes all of my previous databases from my old instance of MySQL. 我有一个完整的数据文件夹,其中包含我的旧MySQL实例中的所有以前的数据库。 I upgraded OSX 10.6 to 10.7, I started having problems almost instantly so reinstalled mysql and phpMyAdmin (PMA). 我将OSX 10.6升级到10.7,几乎立即开始遇到问题,因此重新安装了mysql和phpMyAdmin(PMA)。
I have tried simply moving the data/
folder to usr/local/mysql/data/
but then MySQL will not start at all. 我曾尝试将data/
文件夹移动到usr/local/mysql/data/
但是MySQL根本不会启动。
So I tried moving just the database folder into data/
- This works, I see my database in PMA, however when i click it, theres no tables. 因此,我尝试将数据库文件夹仅移至data/
-这行得通,我在PMA中看到了我的数据库,但是当我单击它时,没有表。
If I move all the files inside the database folder into a new one created - I see all the tables but get this error : 如果我将数据库文件夹中的所有文件移动到新创建的文件中,则可以看到所有表,但会收到此错误:
So can anyone tell me, where or what i am doing wrong? 谁能告诉我,我在哪里或哪里做错了?
This was a permissions problem. 这是一个权限问题。
Downloading an app such as BatChmod helped me. 下载诸如BatChmod之类的应用程序对我有帮助。
Or follow this link : Can't find file: './ci/users.frm' (errno: 13) 或点击以下链接: 找不到文件:“ ./ ci / users.frm”(错误号:13)
MySQL needs its permissions. MySQL需要其权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.