Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7245

mysql_install_db fails on Mac OS X because "Can't find file: './mysql/db.frm' (2 replies)

$
0
0
Hey everyone,

I assume I've made a rookie mistake. I just got a MacBook Pro and I'm trying to set up MySQL on it. I'm following the tutorial and I did the following:

[Excerpt begin]
$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 22
Server version: 5.5.8 MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
+--------------------+
1 row in set (0.00 sec)
[Excerpt end]

In the tutorial it says there should be databases called mysql, test, and tmp. I thought maybe something went wrong during setup, so I tried running mysql_install_db and I got this:

[Excerpt begin]
$ mysql_install_db
Installing MySQL system tables...
110119 20:37:07 [Warning] Can't create test file /usr/local/mysql-5.5.8-osx10.6-x86_64/data/<computer name>.lower-test
110119 20:37:07 [Warning] Can't create test file /usr/local/mysql-5.5.8-osx10.6-x86_64/data/<computer name>.lower-test
110119 20:37:07 [ERROR] ./bin/mysqld: Can't find file: './mysql/db.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/db.frm' (errno: 13)
110119 20:37:07 [ERROR] Aborting

110119 20:37:07 [Note] ./bin/mysqld: Shutdown complete


Installation of system tables failed! Examine the logs in
./data for more information.

...
[Excerpt end]

First of all, I don't see any logs in ./data. Secondly, after looking up the error it looks like a permissions issue. I checked my /usr/local folder and the mysql soft link and the mysql-5.5.8-osx10.6-x86_64 directory are both owned by _mysql (I set that earlier).

Does anyone have any idea why I can't run mysql_install_db? Or why the databases from the tutorial aren't there? Thanks!

Viewing all articles
Browse latest Browse all 7245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>