Renato Vasconcellos
Renato Vasconcellos

Reputation: 447

How to solve “Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored” in xampp

How to stop the below warning in xampp?

Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored

Upvotes: 9

Views: 32922

Answers (4)

user17161735
user17161735

Reputation:

I had a similar but different problem in the end:

changing the permission was not enough, there was something else:

when validating the content of the file /etc/mysql/my.cnf i get this:

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/

valid that all the files exist and the first file/directory is missing, it occurred to me to proceed to comment it like this:

#!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/

apply the procedure again with 644 permissions and restart the server, and everything works fine now with no warnings.

I can't properly set permissions to MySQL config files

Upvotes: 0

user3783243
user3783243

Reputation: 5224

With the stopped server perform:

  1. chmod 644 /opt/lampp/etc/my.cnf
  2. restart the server

Upvotes: 37

Bala Murugan
Bala Murugan

Reputation: 479

I resolve this Error By the Below Commands :-

sudo chown mysql:mysql /opt/lampp/etc/my.cnf

After That Do the 2nd Command:-

sudo chmod 600 /opt/lampp/etc/my.cnf

Then restart the server.

It Resolve Me. Anyone face this problem try once with above cmd.

Upvotes: 1

Simon205
Simon205

Reputation: 41

Hae I Got this error

Warning: World-writable config file '/opt/lampp/etc/my.cnf' is ignoredWarning: World-writable config file '/opt/lampp/etc/my.cnf' is ignoredWarning: World-writable config file '/opt/lampp/etc/my.cnf' is ignored

This is how I solved it hope It work for you

sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php

Upvotes: 4

Related Questions