title: Can't fully uninstall MYSQL with Homebrew with Mac 10.8.5 How to find/remove "/etc/my.cnf" from old install?
body: <p>This is a sample from my terminal.</p>
  
  <pre><code>My-MacBook-Pro:~ My$ brew update
  Already up-tåo-date.
  My-MacBook-Pro:~ My$ brew uninstall mysql
  Error: No such keg: /usr/local/Cellar/mysql
  My-MacBook-Pro:~ My$ brew install mysql
  Warning: Your Xcode (4.5.2) is outdated
  Please install Xcode 4.6.3.
  ==&gt; Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.6.1
  Already downloaded: /Library/Caches/Homebrew/mysql-5.6.13.mountain_lion.bottle.tar.gz
  ==&gt; Pouring mysql-5.6.13.mountain_lion.bottle.tar.gz
  ==&gt; Caveats
  A "/etc/my.cnf" from another install may interfere with a Homebrew-built
  server starting up correctly.
  
  To connect:
      mysql -uroot
  
  To have launchd start mysql at login:
      ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
  Then to load mysql now:
      launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
  Or, if you don't want/need launchctl, you can just run:
      mysql.server start
  ==&gt; Summary
    /usr/local/Cellar/mysql/5.6.13: 9381 files, 354M
  My-MacBook-Pro:~ My$ 
  </code></pre>
  
  <p>The caveat says there is a left over file from another install, but I can't seem to uninstall it. I am not very familiar with libraries (though i look forward to getting better at them), and I can't find where all these files live. </p>
  
  <p>I tried searching for my.cnf, but the results were:</p>
  
  <pre><code>adodb-mysqli.inc.php
  adodb-mysqli.inc.php
  php_CORE3.xml
  </code></pre>
  
  <p>none of which appear to be the right thing.</p>
  
  <p>This also might be relevant. </p>
  
  <p>When I enter in my terminal:</p>
  
  <pre><code>nano ~/.bash_profile
  </code></pre>
  
  <p>I get this, which contradicts what I was led to believe I would see.</p>
  
  <pre><code>export PATH=/usr/local/mysql/bin:$PATH
  export Parth=/usr/local/mysql/bin:$PATH
  export PATH=/usr/local/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/$
  </code></pre>
  
  <p>Any ideas on how I can remove this rogue file?</p>
  
  <p>Edit: Further attempts listed below. They all remain fruitless. </p>
  
  <p>I tried searching for the file in my terminal by entering the following:</p>
  
  <pre><code>My-MacBook-Pro:~ My$ sudo /usr/libexec/locate.updatedb
  My-MacBook-Pro:~ My$ locate my.cnf
  My-MacBook-Pro:~ My$ sudo find /etc -name *.cnf
  </code></pre>
  
  <p>No results.</p>
  
  <p>I tried following the top two answers here: <a href="https://stackoverflow.com/questions/4359131/brew-install-mysql-on-mac-os">brew install mysql on mac os</a></p>
  
  <p>but the file is still present. Both these (mentioned in the top answer) resulted in "no such file or directory"</p>
  
  <pre><code>launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
  rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
  </code></pre>
  
  <p>I have also read that homebrew does not install a my.cmf file. This is all very confusing. </p>