Ahhhhhhhhh! Can I get some help with PHP+MySQL please?

Entity

Lifer
Oct 11, 1999
10,090
0
0
Ok, guys, I've been working forever on this project, and am this close (gesturing with fingers) to getting everything to properly work. Unfortunately, I still have those last few steps to go. Here's what has happened so far...

On my University of Washington student account, I've compiled php and installed mysql. This is running AIX. PHP appears to be running just fine, and mysql works for everything that I need to do from the commandline. Essentially, I know that PHP and MySQL are working independently. I compiled PHP support in MySQL, and have edited my php.ini file to reflect the location of my mysql.sock socket. I know that PHP+MySQL can work, but I just haven't been able to get that last step. Here's an example of a student's website that has it working (I emailed him, but haven't got a response from him yet).

Working Example

My phpinfo()

This is the error I get when I try to run anything that uses MySQL+PHP:

Warning: Can't connect to local MySQL server through socket '/da26/d29/robcole/mysql.sock'

I have the socket in the /da26/d29/robcole directory. Like I said, mysql works fine from the commandline with the socket=/da26/d29/robcole/mysql.sock entry in .my.cnf.

Can anyone help?

thanks,
Rob
 

777php

Diamond Member
Jul 17, 2001
3,498
0
0
you need to make sure that the mysql server is running.....put it in the init.d folder so that it starts as soon as you boot. Perhaps you need to write protect the mysql.sock file if it is located in your tmp folder?
 

Entity

Lifer
Oct 11, 1999
10,090
0
0
It is running.

I'm not root on this box, so there is no putting in of the init.d folder; the box stays up all the time, and allows server daemons.

Rob
 

mundania

Senior member
Jun 17, 2000
921
0
0
check your php.ini file

your socket doesn't sound like the default socket... so you need to specify that where it says:

mysql.default_socket =

If you set it up with default configurations... that above line will appear just like that.

so in your case:

mysql.default_socket = /da26/d29/robcole/mysql.sock

try that...
 

Entity

Lifer
Oct 11, 1999
10,090
0
0


<< Did you compiled PHP with mySQL support? >>


Yeah, I did...


<< mysql.default_socket = /da26/d29/robcole/mysql.sock >>


Yeah, that is where the socket is located...its my home directory on the students server.

Rob
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |