Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
so i'm trying to learn a little something about php and mysql. so i went ahead on my powermac, running os x 10.2.4, installed php and mysql. got everything to work. for mysql admin, i am using yoursql. now, my friend wanted to run a small forum for a little ranting on his 10.2.4 server machine. so we downloaded phpbb2 just as i had and set it up and everything, but when it comes time to use yoursql to set up the database in mysql, we try to connect and we get the following error

java.net.ConnectException: Connection refused

can anyone help?
 
also of note is that when i use the mysql manager in the utilities folder, mysql seems to NOT start up. i can click the start button, but nothing happens. the start button is still clickable.
 
What did you put as your server? I connected to my local MySQL database using YourSQL through "localhost:3306" as the server. Give it a shot.
 
Were you able to start up MySQL successfully? You should be able to start MySQL up through Terminal.
 
Not directly, but if the java is trying to connect to MySQL and it's not running then you'll get an error message.

Have you run "top" to check if mysqld is running?
 
Originally posted by mnkeybsness
yah i checked "top"-

mysql is not running.

what's the deal?

Start up MySQL with the command "mysqld" in Terminal. Are you getting an error? If so, what does it say?
 
Did you set up a mysql user, like the tutorial specifies?

Also, make sure you're in the right directory when you use the "sudo ./bin/mysqld_safe &" command to start it up. I know I goofed on that a couple times and MySQL wouldn't start.
 
one more errors i'm finding...

when trying to start the web server, i get this error:
Syntax error on line 368 of /etc/httpd/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules
/usr/sbin/apachectl start: httpd could not be started
 
worst idea EVER...besides that i can't unless i want to do about 200mbs of software updates.

if your php works, couldn't you just send me the php folder from you drive?
 
I don't believe that there's any one PHP folder. It's several files between Apache config and everything else.

Sorry I can't do anything more for you at this point.
 
Let me tell you how fun SQL is. I have an assignment of an airline database. 9 tables each with multiple attributes and 5 attributes per table. 45 entries.... ouch.
 
another problem i have encountered...and this is just today, AFTER we re-installed os x server and went through all the updates. this time i didn't update php or mysql.

there were tabs here to be able to turn on stuff for the server last night...and now there are no tabs. and YES, we did configure the server for web, file, mail, qt streaming, etc...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.