Re: cannot connect from mysql client nor PHP, only sudo

From: Jerry Stuckle <jstucklex_at_attglobal.net>
Date: Mon, 20 Feb 2017 08:27:00 -0500
Message-ID: <o8eqna$7hd$1_at_jstuckle.eternal-september.org>


On 2/20/2017 5:19 AM, Jivanmukta wrote:
> On 12.02.2017 17:02, Jerry Stuckle wrote:

>> Now the question here is - you have two configuration files.  What are
>> the permissions on both files?  Is one readable by root and not the
>> other?  And what are the contents of the files - what is different about
>> them?

>
> /etc/mysql/mysql.cnf includes /etc/mysql/conf.d/mysql.cnf
>
> $ ls -la /etc/mysql.cnf
> -rw-r--r-- 1 root root 682 lip 11 2016 /etc/mysql/mysql.cnf
> $ ls -la /etc/mysql/conf.d/mysql.cnf
> -rw-r--r-- 1 root root 8 lip 14 2016 /etc/mysql/conf.d/mysql.cnf
>
> Is it a problem that these files have only root permissions? I installed
> mysql by command: sudo apt-get install mysql...

No, they can be read by anyone.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex_at_attglobal.net
==================
Received on Mon Feb 20 2017 - 14:27:00 CET

Original text of this message