Patchwork [meta-oe,2/2] mariadb: fix warning while invoking 'mysql_install_db' on target

login
register
mail settings
Submitter Hongxu Jia
Date Oct. 9, 2013, 7:30 a.m.
Message ID <ec6f9a22f0b97c9e802d26d14f888e2e6b5701d2.1381303657.git.hongxu.jia@windriver.com>
Download mbox | patch
Permalink /patch/59545/
State Accepted, archived
Commit 4e59f5680df8577048821eed12277cee994876d4
Headers show

Comments

Hongxu Jia - Oct. 9, 2013, 7:30 a.m.
Invoke 'mysql_install_db' on target, there are some warnings:
...
Installing MariaDB/MySQL system tables...
131009  6:13:14 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
OK
Filling help tables...
131009  6:13:14 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
OK
...

Modify my.cnf to use '--skip-external-locking' instead of '--skip-locking'
could fix this issue.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta-oe/recipes-support/mysql/mariadb/my.cnf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta-oe/recipes-support/mysql/mariadb/my.cnf b/meta-oe/recipes-support/mysql/mariadb/my.cnf
index 8470817..d174381 100644
--- a/meta-oe/recipes-support/mysql/mariadb/my.cnf
+++ b/meta-oe/recipes-support/mysql/mariadb/my.cnf
@@ -14,7 +14,7 @@  pid-file 					= /var/lib/mysql/mysqld.pid
 log-error 					= /var/log/mysqld.err
 basedir 					= /usr
 datadir 					= /var/mysql
-skip-locking
+skip-external-locking
 skip-networking
 ignore-builtin-innodb
 bind-address					= localhost