summaryrefslogtreecommitdiff
path: root/api-ref/source/samples
diff options
context:
space:
mode:
authorDoug Shelley <doug@parelastic.com>2016-01-19 20:22:03 +0000
committerDoug Shelley <doug@parelastic.com>2016-12-13 16:29:41 +0000
commitf5d1caea889f85196dfc1efe4892560f0b145191 (patch)
tree1001c9678bef5c1c7bd40269b95c47f5c7032528 /api-ref/source/samples
parent8adfb7e4f27fb9daf87dda018094cc6c58089b88 (diff)
downloadtrove-f5d1caea889f85196dfc1efe4892560f0b145191.tar.gz
Fix backup of mysql variants on Centos
The switch to XtraBackup 2.3 was causing an issue on RHEL/Centos related to is using the "mysql" user instead of "trove". The fix on Ubuntu was to move the os_admin credentials to ~trove/.my.cnf. While this is a better place to write the credentials anyway (i.e. they shouldn't be stored in server my.cnf) this doesn't solve the whole issue on Centos. This commit changes the XB backup strategy to pass the user/password in on the innobackupex command line. Also, it was noticed that the "socket" option wasn't being specified in the config.template. This is causing some client connections, such as XB to fail connect because it can't locate the socket. Forcing the server/client to write/read the socket from a known location fixes this. Change-Id: Iea941ce60179ef4dc5c403c2fc374cc8eb7d1617 Closes-bug: 1649592
Diffstat (limited to 'api-ref/source/samples')
-rw-r--r--api-ref/source/samples/db-list-cfg-defaults-response.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/api-ref/source/samples/db-list-cfg-defaults-response.json b/api-ref/source/samples/db-list-cfg-defaults-response.json
index 58422431..c506d3aa 100644
--- a/api-ref/source/samples/db-list-cfg-defaults-response.json
+++ b/api-ref/source/samples/db-list-cfg-defaults-response.json
@@ -22,7 +22,8 @@
"open_files_limit": 512,
"performance_schema": "ON",
"pid_file": "/var/run/mysqld/mysqld.pid",
- "port": 3306,
+ "socket": "/var/run/mysqld/mysqld.sock",
+ "port": "3306",
"query_cache_limit": "1M",
"query_cache_size": "8M",
"query_cache_type": 1,