From: Nate Carlson <natecars at real-time.com> To: Jurupari <jurupari at geocities.com> Copies to: tclug-list at lists.real-time.com Subject: Re: [TCLUG] RedHat 7 and MySQL not working... Send reply to: tclug-list at lists.real-time.com <mailto:tclug-list-request at lists.real-time.com?subject=subscribe> <mailto:tclug-list-request at lists.real-time.com?subject=unsubscribe> Date sent: Sun, 26 Nov 2000 10:48:15 -0600 (CST) Thanks for the help Nate, I finally got everything going after a couple of weeks of messing with it. > Harder fix: > > change your php code to use the machine's hostname instead of localhost: > $db = mysql_connect("blah.example.com", "apache"); > > ..which will have it communicate via TCP/IP instead of UNIX > sockets. You'll have to make sure that your database has proper > permissions for this to work. I guess I don't have much of an understanding of the difference between those two comcepts, but I tried this approach first and got things going. I wasn't thrilled with changing the PHP/HTML files though, so I kept on messing with it, eventually directing PHP to the location of the mysql.sock file via the /usr/local/lib/php.ini file AND rebooting several times. Mike O O < \__/