2016-08-22 242 views
0
我在使用MariaDB的问题

,而这是第一次工作的罚款。我只有在无法启动MySQL守护进程时才重新启动服务器。这似乎仍然在使用我的旧U盘的文件路径(/媒体/窝),而我已经切换到新的硬盘代替(/媒体/希捷)。这是我得到的/var/log/mysql/error.log错误:MySQL的 - 无法锁定咏叹调控制文件

160728 9:32:32 [ERROR] mysqld: Can't lock aria control file '/media/brood/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds 
160728 9:33:03 [ERROR] mysqld: Got error 'Could not get an exclusive lock; file is probably in use by another process' when trying to use aria control file '/media/brood/mysql/aria_log_control' 
160728 9:33:03 [ERROR] Plugin 'Aria' init function returned error. 
160728 9:33:03 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed. 
160728 9:33:03 [Note] InnoDB: Using mutexes to ref count buffer pool pages 
160728 9:33:03 [Note] InnoDB: The InnoDB memory heap is disabled 
160728 9:33:03 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 
160728 9:33:03 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 
160728 9:33:03 [Note] InnoDB: Compressed tables use zlib 1.2.8 
160728 9:33:03 [Note] InnoDB: Using Linux native AIO 
160728 9:33:03 [Note] InnoDB: Not using CPU crc32 instructions 
160728 9:33:03 [Note] InnoDB: Initializing buffer pool, size = 128.0M 
160728 9:33:03 [Note] InnoDB: Completed initialization of buffer pool 
160728 9:33:03 [ERROR] InnoDB: Unable to lock ./ib_logfile0, error: 11 
160728 9:33:03 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files. 
160728 9:33:03 [ERROR] InnoDB: Unable to open './ib_logfile0' 
160728 9:33:03 [ERROR] Plugin 'InnoDB' init function returned error. 
160728 9:33:03 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
160728 9:33:03 [Note] Plugin 'FEEDBACK' is disabled. 
mysqld: Too many arguments (first extra is 'stop'). 
160728 9:33:03 [ERROR] Aborting 

160728 9:33:03 [Note] mysqld: Shutdown complete 

也有可能是权限问题,或者也许文件仍然锁定(我不知道如何工作的) ,因为上次Raspberry Pi重新启动,这是因为有人不小心拔出了Pi的电源插头。

+1

你怎么切换到新的HDD /媒体/希捷? – apesa

+0

也许在磁盘空间试图建立它需要的临时表。你有没有把tmpdir设置为一个单独的小文件系统? –

+0

@apesa我只是从U盘到硬盘格式化新硬盘与相同的文件系统(ext4的),然后复制所有文件(文件夹htdocs目录和mysql),并在my.cnf我这一行:'DATADIR =/media/seagate/mysql'。 –

回答

0

为什么日志包含在旧版本的MySQL数据文件夹的路径仍是一个谜给我。 (它甚至不是以前的USB棒,使故事更完整,它实际上是我之前使用的USB棒!)但是,问题解决了!答案竟是比我想象的更简单,事实证明,我的哥哥卸载东西(玩老游戏的模拟器,他说),当他发现它卸载MariaDB的服务器-10.0(奇怪!)。所以我做了一个简单的sudo apt-get install mariadb-server-10.0,猜猜看!它解决了我的问题! :d

相关问题