Thanks for the advice. I had already gone through it. I have narrowed it down to the password. If I kill the password in mysql and connect from my pl script without a password I can connect no problem. How do I tell perl to use the same password encryption as mysql. I assume encryption is the problem here.