Re: Upgrade to MySQL 5.0.24
Posted by:
mikeh
Date: August 24, 2006 07:34AM
I shut down everything on .68
Un-tarred the mysql-max-5.0.24-linux-i686-glibc23 distribution into /usr/local/ and softlinked to mysql...
I then copied the data directory from mysql-max-5.0.22-linux-i686-glibc23 to mysql.
I have done this in the past upgrading from 5.0.15 to 20a and to 22
I run /usr/local/mysql/bin/ndb_mgmd on the command line and it sits there for a bit and then exits with nothing in any logs...
If I strace it I see;
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(1186), sin_addr=inet_addr("192.168.1.68")}, 16) = -1 ECONNREFUSED (Connection refused)
close(3) = 0
in the output. Maybe significant?
Now ndb_mgm works...
[root@dev bin]# ./ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> show
Connected to Management Server at: 192.168.1.70:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=3 @192.168.1.70 (Version: 5.0.15, Nodegroup: 0, Master)
id=4 (not connected, accepting connect from 192.168.1.68)
[ndb_mgmd(MGM)] 2 node(s)
id=1 @192.168.1.70 (Version: 5.0.15)
id=2 (not connected, accepting connect from 192.168.1.68)
[mysqld(API)] 2 node(s)
id=5 @192.168.1.70 (Version: 5.0.15)
id=6 (not connected, accepting connect from 192.168.1.68)
ndb_mgm>
config.ini is;
[NDBD DEFAULT]
NoOfReplicas=2 # Number of replicas
[TCP DEFAULT]
[MGM]
Id=1
Hostname=192.168.1.70 # Hostname or IP address of MGM node
DataDir=/var/lib/mysql-cluster # Directory for MGM node logfiles
[MGM]
Id=2
Hostname=192.168.1.68 # Hostname or IP address of MGM node
DataDir=/var/lib/mysql-cluster # Directory for MGM node logfiles
[NDBD]
Id=3
Hostname=192.168.1.70 # Hostname or IP address
DataDir=/var/lib/mysql-cluster # Directory for this data node's datafiles
[NDBD]
Id=4
Hostname=192.168.1.68 # Hostname or IP address
DataDir=/var/lib/mysql-cluster
[MYSQLD]
Id=5
Hostname=192.168.1.70 # Hostname or IP address
[MYSQLD]
Id=6
Hostname=192.168.1.68 # Hostname or IP address
If I change the link back all starts correctly.
Subject
Views
Written By
Posted
1745
August 17, 2006 12:24PM
985
August 23, 2006 09:11PM
Re: Upgrade to MySQL 5.0.24
1288
August 24, 2006 07:34AM
1225
September 04, 2006 05:58AM
1136
September 10, 2006 04:31AM
1021
September 11, 2006 05:02AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.