{"id":695,"date":"2020-01-31T08:41:13","date_gmt":"2020-01-31T00:41:13","guid":{"rendered":"https:\/\/ihongchao.com\/?p=695"},"modified":"2020-01-31T09:06:07","modified_gmt":"2020-01-31T01:06:07","slug":"windows%e7%b3%bb%e7%bb%9f%e4%b8%ad%ef%bc%8cmysql%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6my-ini%e5%9c%a8%e5%93%aa%e9%87%8c%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/ihongchao.com\/post\/695\/","title":{"rendered":"windows\u7cfb\u7edf\u4e2d\uff0cMySQL\u914d\u7f6e\u6587\u4ef6my.ini\u5728\u54ea\u91cc\uff1f"},"content":{"rendered":"
\u5b66Java\uff0c\u5b66\u5230\u4e86JDBC\uff0c\u9700\u8981\u5b89\u88c5MySQL\u6765\u7ec3\u4e60\u3002<\/p>\n
\u8bbf\u95eeMySQL\u5b98\u7f51\uff0c\u627e\u5230\u201cDOWNLOADS\u201d -> \u201cMySQL Community (GPL) Downloads \u00bb\u201d -> \u201cMySQL Community Server\u201d\uff0c\u7136\u540e\u9009\u62e9\u7cfb\u7edf\u548cMySQL\u7248\u672c\uff0c\u6700\u540e\u70b9\u51fb\u201cNo thanks, just start my download.\u201d\uff0c\u7136\u540eMySQL\u5c31\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u3002\u8fd9\u91cc\u6211\u4e0b\u8f7d\u7684\u662fmsi\u5b89\u88c5\u5305\u3002<\/p>\n
\u5b89\u88c5\u8fc7\u7a0b\u4e0d\u518d\u8d58\u8ff0\u3002<\/p>\n
\u540e\u6765\uff0c\u9700\u8981\u4fee\u6539MySQL\u914d\u7f6e\u6587\u4ef6\uff0c\u6253\u5f00MySQL\u5b89\u88c5\u76ee\u5f55\uff0c\u5e76\u6ca1\u6709\u53d1\u73b0\u914d\u7f6e\u6587\u4ef6\uff0c\u9690\u85cf\u6587\u4ef6\u4e5f\u6ca1\u6709\u3002<\/p>\n
\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<\/p>\n
mysql --help<\/pre>\n\u5728\u663e\u793a\u7684\u5e2e\u52a9\u6587\u6863\u4e2d\u6709\u8fd9\u6837\u4e00\u6761\u63d0\u793a<\/p>\n
Default options are read from the following files in the given order:\r\nC:\\Windows\\my.ini C:\\Windows\\my.cnf C:\\my.ini C:\\my.cnf C:\\Program Files\\MySQL\\MySQL Server 5.7\\my.ini C:\\Program Files\\MySQL\\MySQL Server 5.7\\my.cnf<\/pre>\n\u627e\u4e86\u5bf9\u5e94\u4f4d\u7f6e\uff0c\u4e5f\u6ca1\u6709\u3002<\/p>\n
\u767b\u5f55MySQL\uff0c\u67e5\u8be2\u5168\u5c40\u53d8\u91cf\uff0c\u67e5\u770bMySQL\u6570\u636e\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e<\/p>\n
mysql> show variables like \"%char%\";\r\n+--------------------------+--------------------------------------------+\r\n| Variable_name | Value |\r\n+--------------------------+--------------------------------------------+\r\n| character_set_client | utf8 |\r\n| character_set_connection | utf8 |\r\n| character_set_database | utf8 |\r\n| character_set_filesystem | binary |\r\n| character_set_results | utf8 |\r\n| character_set_server | utf8 |\r\n| character_set_system | utf8 |\r\n| character_sets_dir | C:\\ProgramData\\MySQL\\MySQL Server 5.7\\Data |\r\n+--------------------------+--------------------------------------------+\r\n8 rows in set, 1 warning (0.01 sec)<\/pre>\n\u53ef\u4ee5\u770b\u5230\uff0cMySQL\u7684\u6570\u636e\u6587\u4ef6\u5b58\u653e\u5728\u201cC:\\ProgramData\\MySQL\\MySQL Server 5.7\\Data\u201d\u76ee\u5f55\u4e2d\u3002\u8fdb\u5165\u76ee\u5f55\uff0c\u7ec8\u4e8e\u5728Date\u7684\u4e0a\u7ea7\u76ee\u5f55\u627e\u5230\u4e86\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n