Bug #28253 ndb_size.pl: cannot set socket
Submitted: 4 May 2007 18:37 Modified: 15 Sep 2007 11:21
Reporter: Gerry Reno Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S4 (Feature request)
Version:5.1.18-BK, 5.1.17, 5.0.42-BK OS:Any
Assigned to: Stewart Smith CPU Architecture:Any

[4 May 2007 18:37] Gerry Reno
Description:
ndb_size.pl needs modified so that you can declare the location of your socket.

How to repeat:
call ndb_size.pl when your socket is in a non-default location and the script will fail.

Suggested fix:
around line 54 replace with the following line:
my $dsn = "DBI:mysql:database=$database;host=$hostname;mysql_socket=/var/lib/mysql/mysql.sock";

or something like this.  Anything so that the user can declare it on the command line or edit it in the script.  No everyone has their sockets in the same location.
[5 May 2007 6:50] Valeriy Kravchuk
Thank you for a reasonable feature request. Verified with both 5.0.42-BK (your line number is more related to 5.0.x) and 5.1.18-BK by code review.
[6 Jul 2007 5:47] Stewart Smith
add --socket option

Attachment: bug28253_ndb_size_set_socket.patch (text/x-patch), 2.10 KiB.

[15 Aug 2007 2:15] Stewart Smith
no objections to patch,
pushed to 5.1-ndb
[15 Aug 2007 6:36] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/32535

ChangeSet@1.2581, 2007-08-15 12:12:59+10:00, stewart@flamingspork.com +1 -0
  [PATCH] BUG#28253 ndb_size.pl: cannot set socket
  
  Index: ndb-work/storage/ndb/tools/ndb_size.pl
  ===================================================================
[7 Sep 2007 20:17] Jon Stephens
Documented in mysql-5.1.22-ndb-6.2.5 changelog.

Left bug in PQ status pending merge to mainline trees.
[14 Sep 2007 16:26] Bugs System
Pushed into 5.1.23-beta
[15 Sep 2007 11:21] Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html

Also documented in 5.1.23 changelog; updated description in Cluster chapter of Manual.