Consigo corrigir o problema acima simplesmente substituindo o arquivo /opt/lampp/etc/my.cnf por /etc/mysql/my.cnf
1) Primeiro faça o backup do /etc/mysql/my.cnf para algum lugar em que se alguma coisa der errado
user@user:~$ cp /etc/mysql/my.cnf ~/Desktop/
2) Em seguida, copie o arquivo /etc/mysql/my.cnf para / etc / mysql /
user@user:~$ sudo cp /opt/lampp/etc/my.cnf /etc/mysql/
3) Reinicie o computador
4) Inicie o servidor da lampp
user@user:~$ sudo /opt/lampp/lampp start
5) Então o mysql-client irá iniciar no console sem nenhum erro
user@user:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.24 Source distribution
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
Eu fiz isso no Ubuntu 14.04