Fresh install and: #mysql: unknown option '--CLIENT'

Hi,

I just installed Percona server 5.6 on Linux 2.6.32-431.1.2.0.1.el6.i686
I think it installed with a default password because:

/usr/bin/mysql_secure_installation

This doesn’t accept empty password.

I tried to reset mysql root password with:

mysqld_safe --skip-grant-table &
mysql --user=root mysql

but the #mysql command everytime, even without parameters gives the error below:

What should I do?

Thanks.

I encountered something similar. In my haste I forgot the leading hash. I was then able to continue successfully.

I suggest checking your my.cnf file for missing Hash before “Client” entry - see example below.

[mysql]

CLIENT

port = 3306
socket = /var/lib/mysql/mysql.sock
secure_auth = 0