MYSQL / Web Sharing / HELP please



mysql / php newbie -trying to learn. That said:

Installed mysql 4.1 and php 5 (GPB 10.3.9). Didn't work when I tried to connect to mysql. Dragged php and mysql to trash. Noticed that I wasn't able to start web sharing -it would just hang. Reinstalled php and mysql, web sharing now starts, but goes back off if I restart (but not if I log out). I also can't get to my mysql db.

Anyone, please help?

Thanks in advance