List:Cluster« Previous MessageNext Message »
From:Tom Hanlon Date:February 5 2010 9:49pm
Subject:Re: Specifying config file for API node
View as plain text  
Anand Sriraman wrote:
> Hi,
> I want to know how to specify the config file for the mysqld process other
> than my.cnf. I've tried
> 
> mysqld --defaults-file=<path>

That command line option should tell mysqld to read that file and that 
file only.

What would be needed in the mysqld section would be an 
ndb-connectstring=123.123.123.12

And that should work.

By default mysqld looks for a number of files, well the same file a 
number of locations.

/etc/my.cnf
/usr/local/mysql/my.cnf
~.my.cnf

so it can get a little confusing.

--defaults-file should overide this behavior and have mysql look for one 
file only.

This page is a nice reference to all the options.
http://dev.mysql.com/doc/refman/5.1/en/dynindex-option.html

You could always try to start it with what you need on the command line 
and then sort it out from there.

Something like.
mysqld --nbd-conecstring= --ndbcluster(is this still needed ? ) 
--user=mysql --skip-daefaults &&

Beware of perhaps another mysqld laying around.. so many tools use mysql 
  that which mysqld had better show you the mysqld that you are expecting.

--
Tom

> 
> but by doing this my API node isn't showing up as connected in the
> management server when i try show command.
> 
> This is related to my earlier query on setting up both API and data node on
> the same machine.
> http://lists.mysql.com/cluster/7338
> 
> Thanks in advance.


-- 

Tom Hanlon
Certified MySQL DBA
Certified Cloudera Certified Hadoop Professional (CCHP)

Thread
Specifying config file for API nodeAnand Sriraman4 Feb
  • Re: Specifying config file for API nodeGeert Vanderkelen4 Feb
    • Re: Specifying config file for API nodeVíctor Jiménez Cerrada4 Feb
  • Re: Specifying config file for API nodeTom Hanlon5 Feb
    • Re: Specifying config file for API nodeAnand Sriraman9 Feb