7

解决mysqld启动失败 MySQL can't find messagefile '/opt/share/mysql/errmsg.sys'的...

 2 years ago
source link: https://hellodk.cn/post/39
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

解决mysqld启动失败 MySQL can't find messagefile '/opt/share/mysql/errmsg.sys'的问题

今天服务器的onmp环境挂掉了。多踩了个坑啊,都是因为手贱更新了lede v2.30,这版本还升级了Linux Kernel。导致transmission 不能使用,某些不当操作后onmp环境也遭了殃。可是没办法,问题依然要解决。

5cc2efb0827ba.png

输入mysqld以检查问题所在——

5cc2f02a19322.png

发现了Can't find messagefile '/opt/share/mysql/errmsg.sys'的错误导致的无法启动。继续使用find命令寻找errmsg.sys的位置:

find / -name "errmsg.sys" -print

ps: 加双引号并且使用-print格式的输出大多用于需要用到RE正则表达式的情形,这里可以直接简单写成find / -name errmsg.sys
找到后在/opt/share/下创建mysql文件夹。复制进去就可以了,确保该文件可读可写(对MySQL可读可写)。
复制:

cp /mnt/FiveOO/opt/share/mysql/errmsg.sys /opt/share/mysql/

最后再执行onmp restart,即可重启。

PS: 现在LEDE V2.30,完美运行ONMP和Transmission。2.30版本更新了不少,从linux内核到界面优化都有很大转变,现在觉得不错~

PSS:(多加几个关键词,友情指路)
恩山无线论坛:https://right.com.cn/forum/
koolshare:http://koolshare.cn/


end.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK