当前位置:论坛首页 > Linux面板 > 求助

把www目录挂载到独立分区后Mysql无法启动

发表在 Linux面板2018-6-1 13:33 [复制链接] 2 1765

180601 13:15:15 [Note] Plugin 'FEDERATED' is disabled.
/www/server/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
180601 13:15:15 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
180601 13:15:15 InnoDB: The InnoDB memory heap is disabled
180601 13:15:15 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180601 13:15:15 InnoDB: Compressed tables use zlib 1.2.7
180601 13:15:15 InnoDB: Using Linux native AIO
180601 13:15:15 InnoDB: Initializing buffer pool, size = 1.0G
180601 13:15:15 InnoDB: Completed initialization of buffer pool
180601 13:15:15  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 /www/server/data/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.

我把sda分区挂到www目录下安装宝塔面板出现的问题。根目录太小装不下宝塔面板。我觉得是权限到问题,但是改了775权限,用户改为mysql.mysql好像也没什么用...要么清理一下mysql的安装位置重装mysql?还是直接yum装mysql?

使用道具 举报 只看该作者 回复
发表于 2018-6-1 13:44:47 | 显示全部楼层
执行./mysql_install_db --user=mysql --basedir=/www/server/mysql --datadir=/www/server/data/mysql之后

提示错误ERROR: 1  Can't create/write to file '/www/server/data/mysql/mysql/db.MYI' (Errcode: 13)
然后mysqld就退出了。是不是路径不对啊...
使用道具 举报 回复 支持 反对
发表于 2018-6-1 16:38:42 | 显示全部楼层
你这个mysql是已安装的还是新安装的?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表