The err file cannot be generated when MySQL is started in xampp

Source: Internet
Author: User
Tags chmod

centos6.5, install xampp5.6.30, start MySQL error, can not produce. err file


[Email protected]_server ~]#/opt/lampp/lampp startmysql

Xampp:starting Mysql...ok.

[[Email protected]_server ~]#/opt/lampp/bin/mysqld_safe_helper:can ' t create/write to file '/opt/lampp/var/mysql/ Zabbix_server.err ' (errcode:13 "Permission denied")


Check directory Permissions

[Email protected]_server ~]# ll/opt/lampp/var/mysql/

Total 86056

-RW-RW----1 MySQL mysql 16384 June 18:53 aria_log.00000001

-RW-RW----1 MySQL mysql 18:53 aria_log_control

-RW-RW----1 MySQL mysql 77594624 June 18:53 ibdata1

-RW-RW----1 MySQL mysql 5242880 June 18:53 Ib_logfile0

-RW-RW----1 mysql mysql 5242880 Nov ib_logfile1

-RW-RW----1 mysql mysql 0 Nov multi-master.info

drwx------2 MySQL mysql 4096 June 18:35 MySQL

drwx------2 MySQL mysql 4096 June 18:35 Performance_schema

drwx------2 MySQL mysql 4096 June 18:35 phpMyAdmin

drwx------2 MySQL mysql 4096 June 18:35 test


Modified to Root:root and chmod 777 are not effective


After repeated testing, you need to modify the permissions of the/OPT/LAMPP directory to


[Email protected]_server ~]# chmod 755/opt/lampp/


It's normal to start xampp again.


[Email protected]_server ~]#/opt/lampp/lampp startmysql

Xampp:starting Mysql...ok.

[[Email Protected]_server ~]#


The err file cannot be generated when MySQL is started in xampp

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.