MySQL Access

I've noticed something in recent JumpBox builds.
The password supplied by this command:
sudo grep password /etc/mysql/debian.cnf
only works when using username: debian-sys-maint.
It will not work if you try to log in to MySQL as root or admin or anything else.

This seems to apply on other JumpBoxes as well as the OTRS one.

MySQL Access

I believe you can set the root mysqluser password as the debian-sys-maint user ... but you should be able to do this ...

sudo dpkg-reconfigure mysql-server-5.0

Note: This restarts the mysql server.

Another method:

I am pretty sure as debian-sys-maint:

sudo mysql --defaults-file=/etc/mysql/debian.cnf

the SQL statment

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('biscuit');

will do it.

Austin

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.