为了账号安全,请及时绑定邮箱和手机立即绑定

#[mysqld] 前的#号去掉MySQL无法启动

 

 #[mysqld]  

 bind-address = 127.0.0.1


# The TCP/IP Port the MySQL Server will listen on

port=3306



#Path to installation directory. All paths are usually resolved relative to this.

basedir="D:\\Program Files\\mysql-5.7.18-winx64"


#Path to the database root

datadir="D:\\Program Files\\mysql-5.7.18-winx64/Data"


# The default character set that will be used when a new schema or table is

# created and no character set is defined

character-set-server=utf8

 bind-address = 127.0.0.1


# The TCP/IP Port the MySQL Server will listen on

port=3306



#Path to installation directory. All paths are usually resolved relative to this.

basedir="D:\\Program Files\\mysql-5.7.18-winx64"


#Path to the database root

datadir="D:\\Program Files\\mysql-5.7.18-winx64/Data"


# The default character set that will be used when a new schema or table is

# created and no character set is defined

character-set-server=utf8


正在回答

2 回答

#是注释,去掉了mysql就不能正确解析配置文件了,所以就启动不了了。

1 回复 有任何疑惑可以回复我~

#是注释,去掉多一行不能识别的代码,怎么能启动

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
与MySQL的零距离接触
  • 参与学习       396886    人
  • 解答问题       3353    个

本课程涵盖全部MySQL数据库的基础,学习MySQL数据库的基础知识

进入课程

#[mysqld] 前的#号去掉MySQL无法启动

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信