The problem was lack of /etc/mysql/my.cnf (in my case) or a problem in that file.
Just put the content from next link in that file and do: sudo dpkg --reconfigure -a
http://paste.ubuntu.com/928346/
The problem was lack of /etc/mysql/my.cnf (in my case) or a problem in that file.
Just put the content from next link in that file and do: sudo dpkg --reconfigure -a
http:// paste.ubuntu. com/928346/