Installing MySQL Workbench but File /etc/my.cnf doesn't exist

妖精的绣舞 提交于 2019-12-01 05:39:21
Didi Bui

I figured it out:

  1. Went to my terminal and typed:

     passwd
     Old password was blank
     I created a new password (it was THAT simple)
    
  2. I created a "etc" directory

  3. I checked the files under /usr/local/mysql/support-files/ and saw my cnf file was actually named my-default.cnf and not my-huge.cnf like the developer at the MySQL site.

  4. So I typed: sudo cp my-default.cnf /etc/my.cnf

  5. went back to the Workbench and it FINALLY said:

    Testing host machine settings is done.

The MySQL Server installation on OS X does not include a cnf file, so it is normal that you get the warning. Nonetheless you can continue creating the connection without problems (ignore the warning). When you start MySQL Workbench afterwards and try to manage the configuration of the server, you will get another warning, but you can continue and MySQL Workbench creates the cnf file for you. No need to do all that manually.

I met this problem too. I just clicked the continue button until i was at "Review remote management settings" step, and stop here click "change parameters", then continue. At "Path to configuration file" choose the path point to my-default.cnf. Then check path, it works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!