ERROR WITH MYSQL-WSREP 5.6 COMPILLED FROM SOURCES ON SLES 11 SP2

25 views
Skip to first unread message

Carlos Madera

unread,
Sep 10, 2015, 9:09:25 AM9/10/15
to codership
Hello I have an strange problem and i will explain what happend

I need to change the dafult paths of everything (binaries, data, conf, logs), and I created this script to compile the mysql-wsrep source with these specs

#!/bin/sh
# PERL 5.16.3 
export PATH="/soft/perl-5.16.3/bin:$PATH"
# GCC 4.4.7
export PATH="/soft/gcc-4.4.7/bin:$PATH"
export CXX="/soft/gcc-4.4.7/bin/g++"
export CC="/soft/gcc-4.4.7/bin/gcc"
# cmake 2.8.12
export PATH="/users/sources/cmake-2.8.12.2/bin:$PATH"
cmake . -DCMAKE_INSTALL_PREFIX=/soft/gal325 -DEFAULT_CHARSET=utf8 -DEFAULT_COLLATION=utf8_general_ci -DMYSQL_DATADIR=/users/gal00/data -DMYSQL_TCP_PORT=3306 -DMYSQL_UNIX_ADDR=/users/gal00/mysqld.sock -DSYSCONFDIR=/users/gal00/conf -DSYSTEMD_PID_DIR=/users/gal00/mysqld.pid -DTMPDIR=/users/gal00/tmp
make
make install


ok, you can see, I  have only changed the default routes of the data dir (databases), config dir, sock & pid folder.

The compilation process run perfectly and finished without any problems

I copy the galera library libgalera_smm.so into /soft/gal325/lib/  (this library is extracted from the .rpm)


when I start mysqld, I receive the next messages:

2015-09-10 12:56:01 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2015-09-10 12:56:01 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2015-09-10 12:56:01 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-09-10 12:56:01 0 [Note] /soft/gal325/bin/mysqld (mysqld 5.6.25) starting as process 17177 ...

no errors aparently but when I go to the mysqld.log I see this:

2015-09-10 12:56:01 17177 [ERROR] /soft/gal325/bin/mysqld: unknown variable 'innodb_autoinc_lock_mode=2'
2015-09-10 12:56:01 17177 [ERROR] Aborting
2015-09-10 12:56:01 17177 [Note] Binlog end
2015-09-10 12:56:01 17177 [Note] /soft/gal325/bin/mysqld: Shutdown complete

no recognize any variable required and seted by default in the config of galera cluster  for example: innodb_XXXXX 

my question is, I need to add a specific parameter in the compilation or how I can proceed the compilation?

this is the my.cnf

[client]
port            = 3306
socket          = /users/gal00/mysqld.sock
[mysqld_safe]
pid-file         = /users/gal00/mysqld.pid
socket        = /users/gal00/mysqld.sock
log-error      = /users/gal00/logs/mysqld.log
nice            = 0
[mysqld]
#
# * Basic Settings
#
user            = mysql
#pid-file        = /users/gal00/mysqld.pid
#socket          = /users/gal00/mysqld.sock
#port            = 3306
#basedir         = /soft/gal3
#datadir         = /users/gal00/data
#tmpdir          = /users/gal00/tmp
#lc-messages-dir = /soft/gal3/share/mysql
skip-external-locking
log-error = /users/gal00/logs/mysqld.log
bind-address            = 0.0.0.0
#
# * Fine Tuning
#
key_buffer              = 16M
max_allowed_packet      = 16M
thread_stack            = 192K
thread_cache_size       = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover         = BACKUP
#max_connections        = 100
#table_cache            = 64
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit       = 1M
query_cache_size        = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file        = /var/log/mysql/mysql.log
#general_log             = 1
# Error log - should be very few entries.
#
#
# Here you can see queries with especially long duration
#log_slow_queries       = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id              = 1
log_bin                        = /users/logs/mysql-bin.log
expire_logs_days        = 10
max_binlog_size         = 100M
#binlog_do_db           = include_database_name
#binlog_ignore_db       = include_database_name
#
# * InnoDB
#
binlog_format=ROW
default_storage_engine=innodb
innodb_autoinc_lock_mode=2
innodb_flush_log_at_trx_commit=0
innodb_buffer_pool_size=122M
wsrep_provider=/soft/gal325/lib/libgalera_smm.so
wsrep_provider_options="gcache.size=300M; gcache.page_size=1G"
wsrep_cluster_name="psa"
wsrep_cluster_address="gcomm://node_IP2,node_IP3"
wsrep_sst_method=rsync


Philip Stoev

unread,
Sep 10, 2015, 9:36:37 AM9/10/15
to Carlos Madera, codersh...@googlegroups.com
Hello,

It seems that when you compiled mysqld-wsrep, you did not specify

cmake . -DWITH_WSREP=1 -DWITH_INNODB=1

so you ended up with a MySQL server that does not have InnoDB compiled in.

Philip Stoev
--
You received this message because you are subscribed to the Google Groups
"codership" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to codership-tea...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Carlos Madera

unread,
Sep 15, 2015, 3:24:31 AM9/15/15
to codership
Perfect, now is working fine, thanks for your time.
Reply all
Reply to author
Forward
0 new messages