Strict Standards: Declaration of action_plugin_blog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/blog/action.php on line 13

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/indexmenu/action.php on line 13

Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/importoldchangelog/action.php on line 8

Strict Standards: Declaration of action_plugin_importoldindex::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/importoldindex/action.php on line 8

Strict Standards: Declaration of action_plugin_include::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/include/action.php on line 19

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 421

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 594

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/cache.php on line 291

Deprecated: Function split() is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/auth.php on line 154

Strict Standards: Only variables should be passed by reference in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/doku.php on line 73
クラスターインストール手順 [開発チーム]

mysqlをいれる

db1:~# apt-get install mysql-server-5.0
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl mysql-client-5.0
  mysql-common
Suggested packages:
  dbishell libcompress-zlib-perl tinyca
The following NEW packages will be installed:
  libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl mysql-client-5.0
  mysql-common mysql-server-5.0
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.3MB of archives.
After unpacking 91.6MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://cdn.debian.or.jp etch/main libnet-daemon-perl 0.38-1.1 [45.8kB]
Get:2 http://cdn.debian.or.jp etch/main libplrpc-perl 0.2017-1.1 [34.9kB]
Get:3 http://cdn.debian.or.jp etch/main libdbi-perl 1.53-1etch1 [676kB]
Get:4 http://security.debian.org etch/updates/main mysql-common 5.0.32-7etch10 [55.0kB]
Get:5 http://cdn.debian.or.jp etch/main libdbd-mysql-perl 3.0008-1 [140kB]
Get:6 http://security.debian.org etch/updates/main libmysqlclient15off 5.0.32-7etch10 [1794kB]
Get:7 http://security.debian.org etch/updates/main mysql-client-5.0 5.0.32-7etch10 [7195kB]
Get:8 http://security.debian.org etch/updates/main mysql-server-5.0 5.0.32-7etch10 [25.4MB]
Fetched 35.3MB in 1m16s (459kB/s)
Preconfiguring packages ...
Selecting previously deselected package mysql-common.
(Reading database ... 26903 files and directories currently installed.)
Unpacking mysql-common (from .../mysql-common_5.0.32-7etch10_all.deb) ...
Selecting previously deselected package libnet-daemon-perl.
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.38-1.1_all.deb) ...
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2017-1.1_all.deb) ...
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.53-1etch1_i386.deb) ...
Selecting previously deselected package libmysqlclient15off.
Unpacking libmysqlclient15off (from .../libmysqlclient15off_5.0.32-7etch10_i386.deb) ...
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_3.0008-1_i386.deb) ...
Selecting previously deselected package mysql-client-5.0.
Unpacking mysql-client-5.0 (from .../mysql-client-5.0_5.0.32-7etch10_i386.deb) ...
Setting up mysql-common (5.0.32-7etch10) ...
Selecting previously deselected package mysql-server-5.0.
(Reading database ... 27119 files and directories currently installed.)
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.0.32-7etch10_i386.deb) ...
Setting up libnet-daemon-perl (0.38-1.1) ...
Setting up libplrpc-perl (0.2017-1.1) ...
Setting up libdbi-perl (1.53-1etch1) ...
Setting up libmysqlclient15off (5.0.32-7etch10) ...
 
Setting up libdbd-mysql-perl (3.0008-1) ...
Setting up mysql-client-5.0 (5.0.32-7etch10) ...
Setting up mysql-server-5.0 (5.0.32-7etch10) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld . . . . ..
Checking for corrupt, not cleanly closed and upgrade needing tables..
 
db1:~#

プロセス

db1:~# ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [2]
    2 ?        S      0:00 [migration/0]
    3 ?        SN     0:00 [ksoftirqd/0]
    4 ?        S<     0:00 [events/0]
    5 ?        S<     0:00 [khelper]
    6 ?        S<     0:00 [kthread]
    9 ?        S<     0:00 [kblockd/0]
   10 ?        S<     0:00 [kacpid]
  169 ?        S<     0:00 [kseriod]
  209 ?        S      0:00 [pdflush]
  210 ?        S<     0:00 [kswapd0]
  211 ?        S<     0:00 [aio/0]
  913 ?        S<     0:00 [scsi_eh_0]
 1189 ?        S<     0:00 [kjournald]
 1362 ?        S<s    0:00 udevd --daemon
 1759 ?        S<     0:00 [kpsmoused]
 2048 ?        S<     0:00 [kmirrord]
 2161 ?        Ss     0:00 /sbin/portmap
 2291 ?        Ss     0:00 /sbin/syslogd
 2297 ?        Ss     0:00 /sbin/klogd -x
 2369 ?        Ss     0:00 /usr/sbin/acpid -c /etc/acpi/events -s /var/run/acpid.socket
 2412 ?        Ss     0:00 /usr/sbin/exim4 -bd -q30m
 2424 ?        Ss     0:00 /usr/sbin/inetd
 2443 ?        Ss     0:00 /usr/sbin/sshd
 2469 ?        Ss     0:00 /sbin/rpc.statd
 2482 ?        Ss     0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 104:104 -g
 2492 ?        Ss     0:00 /usr/sbin/atd
 2499 ?        Ss     0:00 /usr/sbin/cron
 2526 tty1     Ss     0:00 /bin/login --
 2527 tty2     Ss+    0:00 /sbin/getty 38400 tty2
 2531 tty3     Ss+    0:00 /sbin/getty 38400 tty3
 2534 tty4     Ss+    0:00 /sbin/getty 38400 tty4
 2537 tty5     Ss+    0:00 /sbin/getty 38400 tty5
 2538 tty6     Ss+    0:00 /sbin/getty 38400 tty6
 2548 tty1     S      0:00 -bash
 2567 tty1     S      0:00 su -
 2568 tty1     S+     0:00 -su
 2573 ?        Ss     0:00 sshd: zero [priv]
 2575 ?        Ss     0:00 sshd: zero [priv]
 2577 ?        S      0:00 sshd: zero@pts/0
 2578 pts/0    Ss     0:00 -bash
 2597 ?        S      0:00 sshd: zero@pts/1
 2598 pts/1    Ss     0:00 -bash
 2617 pts/1    S      0:00 su -
 2618 pts/0    S      0:00 su -
 2619 pts/1    S+     0:00 -su
 2623 pts/0    S      0:00 -su
 2763 ?        S      0:00 [pdflush]
 2943 pts/0    S      0:00 /bin/sh /usr/bin/mysqld_safe
 2980 pts/0    Sl     0:02 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
 2981 pts/0    S      0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
 3078 pts/0    R+     0:00 ps ax
db1:~#

my.cnfの編集

とりあえずコピー

db1:~#
db1:~# cp /etc/mysql/my.cnf /etc/mysql/my.cnf.back
db1:~#

元データ

db1:~# cat /etc/mysql/my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
 
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock
 
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
 
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0
 
[mysqld]
#
# * Basic Settings
#
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
language        = /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 127.0.0.1
#
# * Fine Tuning
#
key_buffer              = 16M
max_allowed_packet      = 16M
thread_stack            = 128K
thread_cache_size       = 8
#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.
#log            = /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# 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.
#server-id              = 1
log_bin                 = /var/log/mysql/mysql-bin.log
# WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian!
expire_logs_days        = 10
max_binlog_size         = 100M
#binlog_do_db           = include_database_name
#binlog_ignore_db       = include_database_name
#
# * BerkeleyDB
#
# Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
#skip-innodb
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
 
 
 
[mysqldump]
quick
quote-names
max_allowed_packet      = 16M
 
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
 
[isamchk]
key_buffer              = 16M
 
#
# * NDB Cluster
#
# See /usr/share/doc/mysql-server-*/README.Debian for more information.
#
# The following configuration is read by the NDB Data Nodes (ndbd processes)
# not from the NDB Management Nodes (ndb_mgmd processes).
#
# [MYSQL_CLUSTER]
# ndb-connectstring=127.0.0.1
 
 
#
# * IMPORTANT: Additional settings that can override those from this file!
#
!includedir /etc/mysql/conf.d/
 
db1:~#

更新後

db1:~# cat /etc/mysql/my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
 
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock
 
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
 
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0
 
[mysqld]
 
ndbcluster
ndb-connectstring       = web1
 
 
#
# * Basic Settings
#
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
language        = /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address           = 127.0.0.1
#
# * Fine Tuning
#
key_buffer              = 16M
max_allowed_packet      = 16M
thread_stack            = 128K
thread_cache_size       = 8
#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.
#log            = /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# 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.
#server-id              = 1
log_bin                 = /var/log/mysql/mysql-bin.log
# WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian!
expire_logs_days        = 10
max_binlog_size         = 100M
#binlog_do_db           = include_database_name
#binlog_ignore_db       = include_database_name
#
# * BerkeleyDB
#
# Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
#skip-innodb
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
 
 
 
[mysqldump]
quick
quote-names
max_allowed_packet      = 16M
 
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
 
[isamchk]
key_buffer              = 16M
 
#
# * NDB Cluster
#
# See /usr/share/doc/mysql-server-*/README.Debian for more information.
#
# The following configuration is read by the NDB Data Nodes (ndbd processes)
# not from the NDB Management Nodes (ndb_mgmd processes).
#
# [MYSQL_CLUSTER]
# ndb-connectstring=127.0.0.1
[MYSQL_CLUSTER]
ndb-connectstring       = web1
 
#
# * IMPORTANT: Additional settings that can override those from this file!
#
!includedir /etc/mysql/conf.d/
 
db1:~#

ndb起動

設定を変えたので念の為再起動

db1:~# /etc/init.d/mysql stop
Stopping MySQL database server: mysqld.
db1:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld . . . . . . . . ..
Checking for corrupt, not cleanly closed and upgrade needing tables..
db1:~#

という訳で起動

db1:~# /etc/init.d/mysql-ndb start --initial --ndb-mgmd-host=web1
Starting MySQL NDB Data Node: ndbd.
db1:~#

プロセス

db1:~# ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [2]
    2 ?        S      0:00 [migration/0]
    3 ?        SN     0:00 [ksoftirqd/0]
    4 ?        S<     0:00 [events/0]
    5 ?        S<     0:00 [khelper]
    6 ?        S<     0:00 [kthread]
    9 ?        S<     0:00 [kblockd/0]
   10 ?        S<     0:00 [kacpid]
  169 ?        S<     0:00 [kseriod]
  209 ?        S      0:00 [pdflush]
  210 ?        S<     0:00 [kswapd0]
  211 ?        S<     0:00 [aio/0]
  913 ?        S<     0:00 [scsi_eh_0]
 1189 ?        S<     0:00 [kjournald]
 1362 ?        S<s    0:00 udevd --daemon
 1759 ?        S<     0:00 [kpsmoused]
 2048 ?        S<     0:00 [kmirrord]
 2161 ?        Ss     0:00 /sbin/portmap
 2291 ?        Ss     0:00 /sbin/syslogd
 2297 ?        Ss     0:00 /sbin/klogd -x
 2369 ?        Ss     0:00 /usr/sbin/acpid -c /etc/acpi/events -s /var/run/acpid.socket
 2412 ?        Ss     0:00 /usr/sbin/exim4 -bd -q30m
 2424 ?        Ss     0:00 /usr/sbin/inetd
 2443 ?        Ss     0:00 /usr/sbin/sshd
 2469 ?        Ss     0:00 /sbin/rpc.statd
 2482 ?        Ss     0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 104:104 -g
 2492 ?        Ss     0:00 /usr/sbin/atd
 2499 ?        Ss     0:00 /usr/sbin/cron
 2526 tty1     Ss     0:00 /bin/login --
 2527 tty2     Ss+    0:00 /sbin/getty 38400 tty2
 2531 tty3     Ss+    0:00 /sbin/getty 38400 tty3
 2534 tty4     Ss+    0:00 /sbin/getty 38400 tty4
 2537 tty5     Ss+    0:00 /sbin/getty 38400 tty5
 2538 tty6     Ss+    0:00 /sbin/getty 38400 tty6
 2548 tty1     S      0:00 -bash
 2567 tty1     S      0:00 su -
 2568 tty1     S+     0:00 -su
 2573 ?        Ss     0:00 sshd: zero [priv]
 2575 ?        Ss     0:00 sshd: zero [priv]
 2577 ?        S      0:01 sshd: zero@pts/0
 2578 pts/0    Ss     0:00 -bash
 2597 ?        S      0:00 sshd: zero@pts/1
 2598 pts/1    Ss     0:00 -bash
 2617 pts/1    S      0:00 su -
 2618 pts/0    S      0:00 su -
 2619 pts/1    S+     0:00 -su
 2623 pts/0    S      0:00 -su
 2763 ?        S      0:00 [pdflush]
 3144 pts/0    S      0:00 /bin/sh /usr/bin/mysqld_safe
 3181 pts/0    Sl     0:04 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
 3182 pts/0    S      0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
 3324 ?        Ss     0:00 /usr/sbin/ndbd
 3326 ?        Sl     0:05 /usr/sbin/ndbd
 3357 pts/0    R+     0:00 ps ax
db1:~#

データベースへの接続許可

GRANT ALL privileges ON prende.* TO root@'192.168.0.0/255.255.255.0' IDENTIFIED BY 'password';
 
GRANT ALL privileges ON zero.* TO root@"192.168.0.%";

第二見出し

第二見出し

第二見出し

第二見出し

第二見出し

第二見出し

第二見出し

クラスターインストール手順.txt · 最終更新: 2010/07/27 15:46 (外部編集)
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

Strict Standards: Only variables should be passed by reference in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/doku.php on line 81