when I installed mysql server into ubuntu machine using this command
sudo apt-get install mysql-client mysql-server
the command is executed successfully but during the installation mysql not asked me about password , so I can not login to mysql except as root user , in other words if I writing into command line this command
sudo mysql -uroot -p
I can login to mysql even if I changed password every time , server does not matter about password if I used sudo . so how can I solve this problem (set new password) when I logged to mysql I tried to change password from mysql.user table using this query
mysql> UPDATE mysql.user SET Password= PASSWORD('rootroot') WHERE User = 'root';
but there is no Password column into mysql.user table