mysql error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a fc3 system: kernel 2.6.11-1.35_FC3, selinux enforced with target
policy 1.17.30-2.96, mysql 3.23.58-16.FC3.1, php 4.3.10-3.2.

After I updated mysql from 3.23.4x to the above version, I cannot connect
mysql database from web by using localhost although I can do it from ssh
command.  The error message is:

Could not connect: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (13)

If I run setenforce 0, then everything works.  The mysql.sock shows:

# ls -lZ /var/lib/mysql/mysql.sock
srwxrwxrwx  mysql    mysql   root:object_r:mysqld_db_t
     /var/lib/mysql/mysql.sock

How to fix the problem?

Thanks!

Hongwei Li






--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux