我正试图在我的工作笔记本上安装XAMPP --这就是为什么我选择XAMPP而不是普通的灯,所以我不需要启动服务等等。但是当我尝试启动MySQL时会出错。我尝试过更改权限,但我真的不知道该怎么做。
这是我的错误日志:
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有人知道怎么解决这个问题吗?
谢谢你抽出时间!:)
发布于 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/
https://serverfault.com/questions/314549
复制相似问题