mysql_secure_installation fails with a permissions issue
There are two main reasons why mysql_secure_installation might fail with a permissions issue:
There are two main reasons why mysql_secure_installation might fail with a permissions issue:
There are two main reasons why mysql_secure_installation
might fail with a permissions issue:
auth_socket
plugin, which doesn't require a password by default. mysql_secure_installation
expects a password and won't work with this setup.I had this issue when trying to run this command after installing the ghost 1-click installer.
When you’re logged into Digital Ocean as root run the commands shown below:
$ cat ~/.digitalocean_password # see the password, then do: $ sudo mysql_secure_installation
Configuring DigitalOcean 1-Click Ghost installation.
Please wait a minute while your 1-Click is configured.
Once complete, you are encouraged to run mysql_secure_installation to ready
your server for production.
Then enter the password that was shown in the bash console.
You also will have to switch to the ghost-mgr user to manage Ghost via the CLI:
sudo -i -u ghost-mgr