@cryptotaxi247 / netdata-1 / commits / 4412ae87b

add mysql configuration with user netdata

Costa Tsaousis (ktsaou) committed Dec 16, 2016 at 02:45 UTC 4412ae87b6caeabdbea5d80ae79e5b3bde59500d
1 file changed +60
conf.d/python.d/mysql.conf
+60
@@ -210,3 +210,63 @@ tcpipv6_root:
210 host : '::1'
211 port : '3306'
212
213 +
214 +# Now we try the same as above with user: netdata
215 +
216 +mycnf1_root:
217 + name : 'local'
218 + user : 'netdata'
219 + 'my.cnf' : '/etc/my.cnf'
220 +
221 +mycnf2_root:
222 + name : 'local'
223 + user : 'netdata'
224 + 'my.cnf' : '/etc/mysql/my.cnf'
225 +
226 +socket1_root:
227 + name : 'local'
228 + user : 'netdata'
229 + # pass : ''
230 + socket : '/var/run/mysqld/mysqld.sock'
231 +
232 +socket2_root:
233 + name : 'local'
234 + user : 'netdata'
235 + # pass : ''
236 + socket : '/var/run/mysqld/mysql.sock'
237 +
238 +socket3_root:
239 + name : 'local'
240 + user : 'netdata'
241 + # pass : ''
242 + socket : '/var/lib/mysql/mysql.sock'
243 +
244 +socket4_root:
245 + name : 'local'
246 + user : 'netdata'
247 + # pass : ''
248 + socket : '/tmp/mysql.sock'
249 +
250 +tcp_root:
251 + name : 'local'
252 + user : 'netdata'
253 + # pass : ''
254 + host : 'localhost'
255 + port : '3306'
256 + # keep in mind port might be ignored by mysql, if host = 'localhost'
257 + # http://serverfault.com/questions/337818/how-to-force-mysql-to-connect-by-tcp-instead-of-a-unix-socket/337844#337844
258 +
259 +tcpipv4_root:
260 + name : 'local'
261 + user : 'netdata'
262 + # pass : ''
263 + host : '127.0.0.1'
264 + port : '3306'
265 +
266 +tcpipv6_root:
267 + name : 'local'
268 + user : 'netdata'
269 + # pass : ''
270 + host : '::1'
271 + port : '3306'
272 +