Tell us your scripts content.Here is my test. [root@localhost david_yeung]# mysql -uadmin -p%ilove -S/tmp/mysql_3310.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 42 Server version: 5.0.45-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> exit Bye
[root@localhost david_yeung]# mysql -uadmin -p%ilove -S/tmp/mysql_3310.sock
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 42
Server version: 5.0.45-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> exit
Bye