Hope this helps someone else. I noticed that I was having the same errorcode 13 as someone who posted earlier. I logged out and back in as the mySQL user and ran through the sudos once again and everything worked.
Next I logged out and back in as another user and the test script worked.
I rebooted, and logged in again as a non-mySQL user, and tried to run the last sudo command to start the server, but got the same problem as before.
Would this go away if I downloaded and ran the StartupItem script?