国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

修改my.cnf后mysql無法運行???

瀏覽:130日期:2022-06-11 17:34:59

問題描述

下面是my.cnf的全部內容:

## The MySQL database server configuration file.## You can copy this to one of:# - '/etc/mysql/my.cnf' to set global options,# - '~/.my.cnf' to set user-specific options.# # One can use all long options that the program supports.# Run program with --help to get a list of available options and with# --print-defaults to see which it would actually understand and use.## For explanations see# http://dev.mysql.com/doc/mysql/en/server-system-variables.html## * IMPORTANT: Additional settings that can override those from this file!# The files must end with ’.cnf’, otherwise they’ll be ignored.#!includedir /etc/mysql/conf.d/!includedir /etc/mysql/mysql.conf.d/

然后加入修改字符的兩句話:

[mysql]default-character-set=utf8[mysqld]character-set-server=utf8

然后就不能運行了

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ’/var/run/mysqld/mysqld.sock’ (2)

問題解答

回答1:

把新加入的兩句話用#注釋掉試一下,能不能啟動(排除新引入配置出錯)

運行mysqld status查看Mysql當前啟動狀態(排除因未關閉導致無法啟動)

運行用戶權限是否發生變化,如之前用root,現在用user(排除權限問題)

如果第一步就可以啟動,則說明新配置有問題,根據響應Mysql版本查一下啟動參數是不是寫錯,以上。

相關文章:
主站蜘蛛池模板: 淮阳县| 墨竹工卡县| 桃园县| 昌图县| 紫阳县| 宝兴县| 天台县| 会宁县| 临桂县| 陇西县| 乐安县| 湖南省| 安图县| 台安县| 休宁县| 武清区| 和硕县| 台山市| 怀安县| 罗定市| 绥中县| 五莲县| 辉南县| 襄城县| 宁晋县| 诏安县| 阿拉尔市| 南昌县| 祁门县| 肥乡县| 琼结县| 晋州市| 灵川县| 济阳县| 河津市| 嘉黎县| 四会市| 汉川市| 望江县| 惠水县| 无为县|