Tag Archives: “mysql: unknown option”

Does MySQL report an error “MySQL: unknown option” for all parameters

error:

[root@XXXX tmp]# mysql -uroot -p
mysql: unknown option ‘–You have new mail in /var/spool/mail/root’
[root@XXXX tmp]#
[root@XXXX tmp]# mysql –?
mysql: unknown option ‘–You have new mail in /var/spool/mail/root’
[root@XXXX tmp]#

———————

It was only later discovered that there was a problem with the my.cnf provided in the package. There was an extra line at the end of the file.