Hey, sorry for the late response I saw this topic at school and then completely forgot about it (I don't log in from school for secruity reasons). Anyway, I have just started experimenting with different Linux distros and have so far used Knoppix, CentOS and Fedora I have a few more which i'm going to try when I have time. Anyway, regarding your problem with MySQL, i'm not an expert and as I said I have only just opened the book. Anyway, I have found this site:
http://www.howtoforge.com
Has been very useful and the tutorials are very easy to understand and it has made the learning experience that much easier, some things still confuse me, but i'm getting there.
As you are using Ubuntu, which I have yet to try I can't offer much help but I can give you a link to the section on the howtoforge website dedicated to Ubuntu. Here is the link, its a tutorial on how to install PHP, MySQL, Apache and Postfix (Mail).
http://www.howtoforge.com/ubuntu_debian_lamp_server
Sorry I can't be of anymore help.
Pho~