I edited deian.cnf to change the password of mysql (ubuntu server)
sudo vi /etc/mysql/debian.cnf
I change
user=debian-sys-maint password=*
to
user=debian-sys-maint
password=mypassword
then I tried to enter console of mysql
mysql -udebian-sys-maint -p
and inputed password 'mypassword'
it reported
mysql error 1045(280000) access denied for user 'debian-sys-maint '@' localhost using password 'yes'
I tried to remove mysql and reinstall, the error is same.
Your comment welcome