Chad Kellerman wrote:
> I am opening up a file (actually a my.conf). I only want 2 lines in
> the file. port and datadir
> The problem I am running into is that there is a port = 3324 in both
> the [client] section and the [mysqld] section.
> I want to open the file and go straight to the [mysqld] section and
> grab the values for port and datadir.
> Can anyone point me in the right direction?
You could use a module like
Or something ...