diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-10-29 14:15:09 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-11-07 15:05:05 +0100 |
commit | aec24e33e053ce75ad733b786056dc45186e503e (patch) | |
tree | 604156e95eb9551bceccc0e6867130767ce93382 /meta-oe/recipes-support/mysql | |
parent | 67d5c9e37780c42c3ee82b2234298bfdce3c5053 (diff) | |
download | meta-openembedded-aec24e33e053ce75ad733b786056dc45186e503e.tar.gz |
mariadb: change socket location in my.cnf
Change socket location to /var/lib/mysql/mysql.sock. Otherwise, we
could spot errors in systemd systems like below.
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
This is because mysqld.service is using PrivateTmp=true.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mysql')
-rw-r--r-- | meta-oe/recipes-support/mysql/mariadb/my.cnf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/mysql/mariadb/my.cnf b/meta-oe/recipes-support/mysql/mariadb/my.cnf index f2c9b9036..c9b785b6b 100644 --- a/meta-oe/recipes-support/mysql/mariadb/my.cnf +++ b/meta-oe/recipes-support/mysql/mariadb/my.cnf | |||
@@ -1,7 +1,7 @@ | |||
1 | [client] | 1 | [client] |
2 | #password = password | 2 | #password = password |
3 | port = 3306 | 3 | port = 3306 |
4 | socket = /tmp/mysql.sock | 4 | socket = /var/lib/mysql/mysql.sock |
5 | 5 | ||
6 | [mysqld_safe] | 6 | [mysqld_safe] |
7 | err-log = /var/log/mysql.err | 7 | err-log = /var/log/mysql.err |
@@ -9,7 +9,7 @@ err-log = /var/log/mysql.err | |||
9 | [mysqld] | 9 | [mysqld] |
10 | user = mysql | 10 | user = mysql |
11 | port = 3306 | 11 | port = 3306 |
12 | socket = /tmp/mysql.sock | 12 | socket = /var/lib/mysql/mysql.sock |
13 | pid-file = /var/lib/mysql/mysqld.pid | 13 | pid-file = /var/lib/mysql/mysqld.pid |
14 | log-error = /var/log/mysqld.err | 14 | log-error = /var/log/mysqld.err |
15 | basedir = /usr | 15 | basedir = /usr |