4 months, 2 weeks ago Orlando Palencia

In Linux Mint you have to add sudo before run this script: $ sudo mysql_secure_installation

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) this will show you if you do not add sudo.

I have used mysql in Ubuntu and no need to add sudo to use it.

For example: Ubuntu: $ mysql -u root -p, this work fine. Linux Mint: $ sudo mysql -u root -p