Can't restart mysql local server -


yesterday, local sql server crashed, , after trying restarting it, had typical error showing me permission problem. trying fix it, made kinda worse. still have permission problem, don't know how fix it.

that's after mysql restart:

mysqld: can't find file: './mysql/plugin.frm' (errno: 13 - permission denied) 2015-04-26 12:48:32 1663 [error] can't open mysql.plugin table. please run mysql_upgrade create it. 2015-04-26 12:48:32 1663 [note] innodb: using atomics ref count buffer pool pages 2015-04-26 12:48:32 1663 [note] innodb: innodb memory heap disabled 2015-04-26 12:48:32 1663 [note] innodb: mutexes , rw_locks use gcc atomic builtins 2015-04-26 12:48:32 1663 [note] innodb: memory barrier not used 2015-04-26 12:48:32 1663 [note] innodb: compressed tables use zlib 1.2.3 2015-04-26 12:48:32 1663 [note] innodb: using cpu crc32 instructions 2015-04-26 12:48:32 1663 [note] innodb: initializing buffer pool, size = 128.0m 2015-04-26 12:48:32 1663 [note] innodb: completed initialization of buffer pool 2015-04-26 12:48:32 1663 [note] innodb: highest supported file format barracuda. 2015-04-26 12:48:32 1663 [note] innodb: log scan progressed past checkpoint lsn 49463 2015-04-26 12:48:32 1663 [note] innodb: database not shutdown normally! 2015-04-26 12:48:32 1663 [note] innodb: starting crash recovery. 2015-04-26 12:48:32 1663 [note] innodb: reading tablespace information .ibd files... 2015-04-26 12:48:32 7fff72404300  innodb: operating system error number 13 in file operation. innodb: error means mysqld not have access rights innodb: directory. innodb: error: not open single-table tablespace file ./test/cities.ibd innodb: not continue crash recovery, because table may become innodb: corrupt if cannot apply log records in innodb log it. innodb: fix problem , start mysqld: innodb: 1) if there permission problem in file , mysqld cannot innodb: open file, should modify permissions. innodb: 2) if table not needed, or can restore backup, innodb: can remove .ibd file, , innodb normal innodb: crash recovery , ignore table. innodb: 3) if file system or disk broken, , cannot remove innodb: .ibd file, can set innodb_force_recovery > 0 in my.cnf innodb: , force innodb continue crash recovery here. 

fixed it, ran following command :

sudo chown -r $(whoami) /usr/local/mysql-5.6.22-osx10.8-x86_64/data 

the mysql folder missing permissions.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -