<div dir="ltr">On Mon, May 6, 2013 at 3:01 PM, MMZ <span dir="ltr"><<a href="mailto:programmer.toronto@gmail.com" target="_blank">programmer.toronto@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to backup database on CentOS linux server,I'm getting error when running the following script. anyone can help?<br>

<br>
Traceback (most recent call last):<br>
  File "./backup.py", line 8, in ?<br>
    username = config.get('client', 'mmz')<br>
  File "/usr/lib/python2.4/ConfigParser.py", line 511, in get<br>
    raise NoSectionError(section)<br></blockquote><div><br><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;display:inline">​I've never used ConfigParser, but that ​</div> <div class="gmail_default" style="font-family:trebuchet ms,sans-serif;display:inline">
​error message looks pretty simple to interpret.  You've set up a ConfigParser object, told it to read in ~/my.cnf, the asked for the value of section 'client', option 'mmz'.  The error indicates that your config files doesn't have a section named 'client'.<br>
<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;display:inline">What is the content of your ~/my.cnf file?<br><br>-- <br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;display:inline">
Jerry<br></div></div></div></div></div>