How can I set client configuration for MySQL Workbench without an installed server?

前端 未结 2 1582
旧时难觅i
旧时难觅i 2021-01-29 04:57

Say I have installed MySQL workbench on windows 7 without a server, and I\'m connecting to a remote server.
How can I set client configuration (like the [client] section in

相关标签:
2条回答
  • 2021-01-29 05:36

    MySQL Workbench doesn't load any server configuration file for its own configuration. It can work on such a config file for a server, however (server section, usually [mysqld] only).

    MySQL Workbench's configuration is a manual step you have to do in order to connect to a server (be it local or remote).

    0 讨论(0)
  • 2021-01-29 05:50

    You asked this a long time ago, and so maybe this is no longer relevant to you, but I will include a way of doing this here to benefit others.

    In Workbench open your connection properties. On the Connection Tab, select the Advanced Tab. In there add the following two options to the Others section (obviously change the readDefaultFile location to the location of your my.ini).

    readDefaultFile=C:\Program Files\MySQL\MySQL Server 5.7\my.ini readDefaultGroup=client

    Now opening connections should read the client section from that my.ini as required.

    0 讨论(0)
提交回复
热议问题