in reply to how perl can connect with mysql

The line
$sth->excute($name,$sex,$birth,$birthadrr)
should be
$sth->execute($name,$sex,$birth,$birthadrr);
for one thing.