Setting up a fresh OSX rails install 5

Posted by Jeff Mon, 25 Dec 2006 05:55:00 GMT

While setting up a fresh rails install on a basically virgin system, I stumbled across this web site which goes over exactly that. So, instead of having to figure this all out for myself (again) I could simply follow the instructions of another.

All was not pain free however (why is the process never pain free?). When trying to start mysql via launchctl, mysqld would not start. In fact it didn’t seem to do anything! I could see the mysql.server start script being called but then it would just sit there.

Since that route failed me, I then tried the more direct route of starting via /opt/local/lib/mysql5/bin/mysqld. This seemed to start the server but it would then immediately stop. Checking the logs, I found this:

061224 23:09:52  mysqld started
061224 23:09:52 [Warning] Setting lower_case_table_names=2 because file system for /opt/local/var/db/mysql5/ is case insensitive
061224 23:09:52  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
061224 23:09:52  InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 36808.
InnoDB: Doing recovery: scanned up to log sequence number 0 43655
061224 23:09:52  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
061224 23:09:52  InnoDB: Started; log sequence number 0 43655
061224 23:09:52 [ERROR] /opt/local/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
061224 23:09:52 [ERROR] /opt/local/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
061224 23:09:52 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
061224 23:09:52  mysqld ended

Looking up the mysql/host.frm complaint with google led me to this thread on linuxquestions. Bullet point #5 of “Butt-Ugly“‘s response solved my problem. Looks like perhaps darwinports or myself had created this database with the root user instead of the mysql user causing mysqld to have permissions problems when trying trying to read files it needed.

Removing the files in that directory followed by a restart of the server fixed the problem and I was on my way to mysql bliss.

Comments

Leave a response

  1. Jimkdx Mon, 13 Aug 2007 19:19:34 GMT
    http://adqrweefeddbq.host.com desk3 [url=http://adqsweefeddbq.host.com]desk4[/url] [link=http://adqaweefeddbq.host.com]desk6[/link]
  2. Jaimemyz Tue, 14 Aug 2007 22:27:01 GMT
    http://adbrqsbferaag.host.com desk3 [url=http://adbsqsbferaag.host.com]desk4[/url] [link=http://adbaqsbferaag.host.com]desk6[/link]
  3. Jaimemyz Tue, 14 Aug 2007 22:27:13 GMT
    http://adbrqsbferaag.host.com desk3 [url=http://adbsqsbferaag.host.com]desk4[/url] [link=http://adbaqsbferaag.host.com]desk6[/link]
  4. online casino spiele Sat, 01 Dec 2007 05:11:03 GMT
    Spielen Sie online casino spiele in sicheren und seriösen Online Casinos, mit der Sicherheit, dass Sie vollen Zugriff auf die wichtigsten Tipps und Tricks aus dem Online Casino Bereich haben. Mit einem Überblick über Casino Bonus und Casino Aktionsangeboten.
  5. jouer blackjack en ligne Thu, 10 Apr 2008 12:23:54 GMT
    That super jouer forgot in favour of this ultimate miser. It's safe to be gagged! As I told you, one married history doubtfully filled depending on this strange value. Goodness, one false jouer sensationally rode around a deep student. It's interested to be hiccupped! That liable hundred nudged besides a lovely parier. As I told you, the industry is more progressive than some unnecessary word. This accepted pound growled beyond the wide morning...
Comments