Reputation: 447
How to stop the below warning in xampp?
Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored
Upvotes: 9
Views: 32922
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
Reputation: 5224
With the stopped server perform:
chmod 644 /opt/lampp/etc/my.cnf
Upvotes: 37
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
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