From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311 Description of problem: PHP should have this line: mysql.default_socket = /var/lib/mysql/mysql.sock in the file: /etc/php.ini Beacuse MySQL use by default the file socket /tmp/mysql.sock which one does not exists Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. connect from a .php file to mysql 2. use localhost as the default host 3. you can't and get an error Actual Results: You can't connect to MySQL from PHP if you do not configure /etc/php.ini Expected Results: you should be able to connect from PHP to MySQL using the file socket /var/lib/mysql/mysql.sock If you have a clean instalation of RedHat 7.2, you should be able to use MySQL and PHP without the need to edit /etc/php.ini This was the normal behavior in RH 7.1 Additional info:
*** This bug has been marked as a duplicate of 60515 ***