surrogate
surrogate copied to clipboard
mysql_socket path incorrect after install
Not sure if this is by design or not, but after install the mysql_socket variable was incorrect in the surrogate.conf, resulting in this error in the logs:
160229 22:58:53 Connecting to MySQL server host: localhost, user: backups, password: set, port: 0, socket: /run/mysqld/mysqld.sock Failed to connect to MySQL server: Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2).
Easy enough to fix in the config but might be good to have a comment prompting users to double check that path.
mysql_socket="/run/mysqld/mysqld.sock"
mysql_socket="/var/lib/mysql/mysql.sock"
Worked perfect after resolving that. Great work on this script BTW!