Cranky Weasel Posted March 28, 2006 Share Posted March 28, 2006 From mysqld.log: 060327 22:40:59 mysqld started 060327 22:40:59 InnoDB: Started; log sequence number 0 43655 060327 22:40:59 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.0.18' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution From phpinfo ( at URL REMOVED )mysqli MysqlI Support enabled Client API version 5.0.18 MYSQLI_SOCKET /var/lib/mysql/mysql.sock mysql MySQL Support enabled Further details at the link above. Port is 3306. Socket is present: srwxrwxrwx 1 mysql mysql 0 Mar 27 22:40 mysql.sock I can log directly into mysql using the command line: [root@server mysql]# mysql -u wordpress -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 to server version: 5.0.18 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> For the life of me I simply cannot get these two to talk to each other. I've been trying for something like 15 hours, scouring documentation and searching the web, and I have come up empty. Can anybody suggest anything at all? PHP works, MySQL works... they just won't work together. I've also overridden the default_socket and default_port settings in /etc/php.ini to no avail. Quote Link to comment https://forums.phpfreaks.com/topic/6024-difficulty-connecting-php-512-and-mysql-5018/ Share on other sites More sharing options...
Cranky Weasel Posted March 28, 2006 Author Share Posted March 28, 2006 SOLVEDProblem is SELinux restricting access to the socket. Verified by performing a "setenforce 0". Quote Link to comment https://forums.phpfreaks.com/topic/6024-difficulty-connecting-php-512-and-mysql-5018/#findComment-21733 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.