首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Ubuntu11.04上启动LAMP中的MySQL (XAMPP)

问无法在Ubuntu11.04上启动LAMP中的MySQL (XAMPP)
EN

Server Fault用户
提问于 2011-09-22 19:50:06
回答 1查看 6.9K关注 0票数 1

我正试图在我的工作笔记本上安装XAMPP --这就是为什么我选择XAMPP而不是普通的灯,所以我不需要启动服务等等。但是当我尝试启动MySQL时会出错。我尝试过更改权限,但我真的不知道该怎么做。

这是我的错误日志:

代码语言:javascript
复制
110922 21:39:20 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
110922 21:39:20 [Note] Plugin 'FEDERATED' is disabled.
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
110922 21:39:20 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110922 21:39:20 InnoDB: The InnoDB memory heap is disabled
110922 21:39:20 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
110922 21:39:20 InnoDB: Compressed tables use zlib 1.2.3
110922 21:39:20 InnoDB: Initializing buffer pool, size = 16.0M
110922 21:39:20 InnoDB: Completed initialization of buffer pool
110922 21:39:20  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 /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
110922 21:39:20 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/niklas-ubuntu.pid ended

有人知道怎么解决这个问题吗?

谢谢你抽出时间!:)

EN

回答 1

Server Fault用户

回答已采纳

发布于 2011-09-23 14:49:05

我从未使用过XAMPP的MySQL版本,因此我不确定它是尝试以登录用户的身份运行MySQL,还是作为名为mysql的特殊系统用户运行(就像常规MySQL那样)。

但是,您需要做的是确保数据库运行的用户对文件夹/opt/lampp/var/mysql/和它的所有内容都有权限。您需要确保所有权和权限都是正确的。

这些命令应该是表单(用正确的用户名替换[USER] ):

chown -R 用户 /opt/lampp/var/mysql/ chmod -R 755 /opt/lampp/var/mysql/

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/314549

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档