How to repair mysql after Sierra Server Upgrade
In upgrading from Mountain Lion to Sierra, mysql no longer launches. I've been searching for instructions on how to fix this, but have not found anything.
This is what I get when trying to start mysql:
mysqld start
170721 20:18:13 [Warning] Can't create test file /usr/local/mysql-5.5.29-osx10.6-x86_64/data/uranium.lower-test
170721 20:18:13 [Warning] Can't create test file /usr/local/mysql-5.5.29-osx10.6-x86_64/data/uranium.lower-test
170721 20:18:13 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
170721 20:18:13 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
170721 20:18:13 InnoDB: The InnoDB memory heap is disabled
170721 20:18:13 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170721 20:18:13 InnoDB: Compressed tables use zlib 1.2.3
170721 20:18:13 InnoDB: Initializing buffer pool, size = 128.0M
170721 20:18:13 InnoDB: Completed initialization of buffer pool
170721 20:18:13 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.
Mac Mini Server (Late 2012), macOS Sierra (10.12.3), Server v 5.2