我已经用my.ini更改了port=3308,但是在重新启动服务之后,MySQL5.6在相同的默认端口3306中工作。
我在MySQL5.5中尝试过,它运行得很好。
C:\Archivos de programa\MySQL\MySQL Server 5.6
# 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 = 3309
# server_id = .....我遗漏了什么?有窃听器吗?
发布于 2014-06-17 13:25:53
MySQL 5.6 my.ini文件位于存储数据的路径中,在我的示例中
C:\Documents and Settings\All Users\Datos de programa\MySQL\MySQL Server 5.6 而不是安装mysql的路径。
C:\Archivos de programa\MySQL\MySQL Server 5.6就像以前的版本一样。
我们必须更改C:\Documents和Settings\所有用户\\MySQL\MySQL服务器5.6 \my.ini文件以生效,并重新启动服务。
在Windows上,MySQL程序按指定的顺序从下列文件读取启动选项

更多信息使用选项文件
您可以通过以下命令查看配置选项,并查找“默认选项”以查看配置.ini和.cnf所在的路径。
> mysqld --verbose --help使用另一个命令,您可以看到mysql变量。
> mysqladmin variableshttps://serverfault.com/questions/605734
复制相似问题