MySQL standalone

MySQL

I have installed MySQL 5.5.27 on my MAC using the binary installer. I am able to run the mysql server with /Library/StartupItems/MySQLCOM/MySQLCOM start. But I am not able to run the mysqld with standalone option. I get the following error:

120821 17:28:03 [Note] Plugin 'FEDERATED' is disabled.
bin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
120821 17:28:03 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
120821 17:28:03 InnoDB: The InnoDB memory heap is disabled
120821 17:28:03 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120821 17:28:03 InnoDB: Compressed tables use zlib 1.2.3
120821 17:28:03 InnoDB: Initializing buffer pool, size = 128.0M
120821 17:28:03 InnoDB: Completed initialization of buffer pool
120821 17:28:04  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.

Could you please help me to run the mysqld –standalone ?

Best Answer

As it is saying, run "./mysql_upgrade -u -p" first to create the frm file. If you're not able to create it, try running the script as superuser. Then run "./mysqld -u ", in case as superuser too.

Hope this helps