相关疑难解决方法(0)

如何修复:mysql:[ERROR]在配置文件/etc/mysql/my.cnf中找到没有前面组的选项?

我在尝试访问mysql时收到以下错误:

mysql:[ERROR]在第22行的配置文件/etc/mysql/my.cnf中找到没有前面组的选项!mysql:[ERROR]默认处理中的致命错误.程序中止了!

/etc/mysql/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

#
# …
Run Code Online (Sandbox Code Playgroud)

mysql

7
推荐指数
1
解决办法
1万
查看次数

mysql 说 root@localhost 是用空密码创建的!但是什么都没有发生。我错过了什么?

这开始于 root 密码重置练习 - 但遇到了各种错误:目前卡在 3306 端口上的冲突中。如果您想跳过前面的步骤,请参阅问题的最后几段(随着我的进步,我一直在更新问题和标题)。谢谢你。

我有一台安装了 mysql 的 mac - 但我不记得密码,因此我一直在尝试使用以下方法重置它:https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html (section:B.5.3.2.2 Resetting the Root Password: Unix and Unix-Like Systems).

运行此命令时: mysqld --init-file=/home/me/mysql-init &

我收到此错误:

`[1] 70374
Deepaks-MacBook-Air:data root# 2018-05-06T08:35:29.269289Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-05-06T08:35:29.271535Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-05-06T08:35:29.272815Z 0 [Note] mysqld (mysqld 5.7.21) starting as process 70374 …
Run Code Online (Sandbox Code Playgroud)

mysql macos macos-sierra

5
推荐指数
1
解决办法
9087
查看次数

标签 统计

mysql ×2

macos ×1

macos-sierra ×1