linux - Start Mysql when Mysql cluster is installed -


i have problem starting mysql when have installd mysql cluster on singel server.

i have read somewhere if install mysql cluster not have download mysql server or client (apt-get install mysql-server / client) becuse these end in conflict. mysql packets should in mysql-cluster-gpl-7.4.7-linux-glibc2.5-x86_64 file downloaded here.

but how can start mysql without install mysql-server or client?

if write mysql in promp, error message:

error 2002 (hy000): can't connect local mysql server through socket '/var/run/mysqld/mysqld.sock' (2) 

and if search "mysql-cluster-gpl-7.4.7-linux-glibc2.5-x86_64" cant find matching files mysqld.sock

i have tried start mysqld got alot off errors.

2015-08-19 14:52:00 0 [warning] timestamp implicit default value deprecated. please use --explicit_defaults_for_timestamp server option (see documentation more details). 2015-08-19 14:52:00 4208 [error] can't find messagefile '/usr/local/mysql-cluster-gpl-7.4.7-linux-glibc2.5-x86_64/share/mysql/errmsg.sys' 2015-08-19 14:52:00 4208 [warning] can't create test file /usr/local/mysql/data/idrottskoll.lower-test 2015-08-19 14:52:00 4208 [warning] can't create test file /usr/local/mysql/data/idrottskoll.lower-test 2015-08-19 14:52:00 4208 [warning] buffered warning: changed limits: max_open_files: 1024 (requested 5000)  2015-08-19 14:52:00 4208 [warning] buffered warning: changed limits: table_cache: 431 (requested 2000)  2015-08-19 14:52:00 4208 [note] plugin 'federated' disabled. mysqld: unknown error 1017 2015-08-19 14:52:00 4208 [error] can't open mysql.plugin table. please run mysql_upgrade create it. 2015-08-19 14:52:00 4208 [note] innodb: using atomics ref count buffer pool pages 2015-08-19 14:52:00 4208 [note] innodb: innodb memory heap disabled 2015-08-19 14:52:00 4208 [note] innodb: mutexes , rw_locks use gcc atomic builtins 2015-08-19 14:52:00 4208 [note] innodb: compressed tables use zlib 1.2.8 2015-08-19 14:52:00 4208 [note] innodb: using linux native aio 2015-08-19 14:52:00 4208 [note] innodb: using cpu crc32 instructions 2015-08-19 14:52:00 4208 [note] innodb: initializing buffer pool, size = 128.0m 2015-08-19 14:52:00 4208 [note] innodb: completed initialization of buffer pool 2015-08-19 14:52:00 4208 [error] innodb: ./ibdata1 can't opened in read-write mode 2015-08-19 14:52:00 4208 [error] innodb: system tablespace must writable! 2015-08-19 14:52:00 4208 [error] plugin 'innodb' init function returned error. 2015-08-19 14:52:00 4208 [error] plugin 'innodb' registration storage engine failed. 2015-08-19 14:52:00 4208 [error] mysqld: unknown option '--ndbcluster' 2015-08-19 14:52:00 4208 [error] aborting  2015-08-19 14:52:00 4208 [note] binlog end 2015-08-19 14:52:00 4208 [note] shutting down plugin 'partition' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_sys_datafiles' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_sys_tablespaces' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_sys_foreign_cols' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_sys_foreign' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_sys_fields' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_sys_columns' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_sys_indexes' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_sys_tablestats' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_sys_tables' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_ft_index_table' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_ft_index_cache' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_ft_config' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_ft_being_deleted' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_ft_deleted' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_ft_default_stopword' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_metrics' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_buffer_pool_stats' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_buffer_page_lru' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_buffer_page' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_cmp_per_index_reset' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_cmp_per_index' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_cmpmem_reset' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_cmpmem' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_cmp_reset' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_cmp' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_lock_waits' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_locks' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'innodb_trx' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'archive' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'performance_schema' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'blackhole' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'csv' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'mrg_myisam' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'memory' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'myisam' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'sha256_password' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'mysql_old_password' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'mysql_native_password' 2015-08-19 14:52:00 4208 [note] shutting down plugin 'binlog' 2015-08-19 14:52:00 4208 [note]  

i'm new programming, , use explain how mysql works mysql cluster.

i have followed following link install mysql cluster:

mysql cluster seems work:

[ndbd(ndb)] 1 node(s) id=2    @46.21.99.140  (mysql-5.6.25 ndb-7.4.7, nodegroup: 0, *)  [ndb_mgmd(mgm)] 1 node(s) id=1    @46.21.99.140  (mysql-5.6.25 ndb-7.4.7)  [mysqld(api)]   1 node(s) id=3    @46.21.99.140  (mysql-5.6.25 ndb-7.4.7) 

if type: ps aux | grep mysql

root      3800  0.0  0.0   4440   752 ?        s    14:24   0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/myname.pid  mysql     3951  0.4  5.7 1514076 465052 ?      sl   14:24   0:05 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/myname.err --pid-file=/usr/local/mysql/data/myname.pid --socket=/tmp/mysql.sock   my.cnf  [mysqld] # options mysqld process: ndbcluster                      # run ndb storage engine  basedir = /usr/local/mysql datadir = /usr/local/mysql/data #socket= /tmp/mysql.sock   [mysql_cluster] # options mysql cluster processes: ndb-connectstring=xx.xx.xx.xxx  # location of management server 

now works! replaced #socket= /tmp/mysql.sock socket=/var/run/mysqld/mysqld.sock , removed commented. created folder called mysqld , new file in folder called mysqld.sock.

after reboot mysql started!

thanks marc b help!


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -