littlebizzy / slickstack

Lightning-fast WordPress on Nginx
https://slickstack.io
GNU General Public License v3.0
624 stars 113 forks source link

Invalid user mysql:mysql error when using remote database #194

Closed jessuppi closed 3 months ago

jessuppi commented 1 year ago

This appears when running ss-perms script:

Running ss-perms-mysql-packages... 
chown: invalid user: ‘mysql:mysql’
chown: cannot access '/etc/mysql/mysql.cnf': No such file or directory
chown: cannot access '/etc/mysql/mysql.conf.d/mysqld.cnf': No such file or directory
chown: invalid user: ‘mysql:mysql’
Running ss-perms-mysql-config... 
chown: invalid user: ‘mysql:mysql’
chown: cannot access '/etc/mysql/mysql.cnf': No such file or directory
chown: cannot access '/etc/mysql/mysql.conf.d/mysqld.cnf': No such file or directory
chown: invalid user: ‘mysql:mysql’
jessuppi commented 3 months ago

Typo/bug now fixed:

if [[ "${DB_REMOTE}" != "true" ]]; then instead of if [[ "${DB_REMOTE}" != "false" ]]; then

...in both of these scripts...

https://github.com/littlebizzy/slickstack/blob/master/bash/ss-perms-mysql-packages.txt https://github.com/littlebizzy/slickstack/blob/master/bash/ss-perms-mysql-config.txt