mysql5.6.24怎么修改端口号

mikudayo 2017-03-26 01:12:13
目录下只有一个my-default.ini,内容如下,请问一下怎么修改端口号,我直接改了port没用啊

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....


# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

...全文
509 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_24624901 2017-04-01
  • 打赏
  • 举报
回复
楼主解决了吗?遇见了同样的问题求解答。
totola147 2017-03-28
  • 打赏
  • 举报
回复
配置文件里增加 port=xxxx service mysqld restart
二月十六 2017-03-26
  • 打赏
  • 举报
回复
需要重启服务
mikudayo 2017-03-26
  • 打赏
  • 举报
回复
引用 1 楼 rucypli 的回复:
my-default.ini改成my。ini
改成my.ini也没有用,我是把port=.....改成了port=3309,可是没效果
rucypli 2017-03-26
  • 打赏
  • 举报
回复
my-default.ini改成my。ini

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧