C Lib

Couchbase C lib installation on OSX (10.9.3) it’s huge pain. After installing seems like MySQL server goes down.

Starting mysqld daemon with databases from /usr/local/mysql/data
Warning, Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
Note, Plugin ‘FEDERATED’ is disabled.
Can’t find file: ‘./mysql/plugin.frm’ (errno: 13 - Permission denied)
ERROR, Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.
Note, InnoDB: Using atomics to ref count buffer pool pages
Note, InnoDB: The InnoDB memory heap is disabled
Note, InnoDB: Mutexes and rw_locks use GCC atomic builtins
Note, InnoDB: Compressed tables use zlib 1.2.3
Note, InnoDB: Using CPU crc32 instructions
Note, InnoDB: Initializing buffer pool, size = 128.0M
Note, InnoDB: Completed initialization of buffer pool
ERROR, InnoDB: ./ibdata1 can’t be opened in read-write mode
ERROR, InnoDB: The system tablespace must be writable!
ERROR, Plugin ‘InnoDB’ init function returned error.
ERROR, Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
ERROR, Unknown/unsupported storage engine: InnoDB
ERROR, Aborting Note,

Can you please provide more details as to how you are using libcouchbase with mysql?

Just installed through Homebrew. (But it was also through ass due error)
sudo chown -R whoami /usr/local
brew tap homebrew/dupes
brew install apple-gcc42
After change owner back
sudo chown -R mysql:mysql brew --prefix/mysql