呵呵,如果是MySQL 3.23.52你可以[mysqld]# Uncomment the following rows if you move the MySQL distribution to another location basedir = d:/mysql/ datadir = d:/mysql/data/ #bind-address=192.168.0.2 port=3306 #language=chinese default-character-set=gb2312# Uncomment the following if you want to log updates log-bin = d:/mysql/log/123.log log=d:/mysql/log/sql.log#socket=MySQLset-variable = key_buffer=16K set-variable = max_allowed_packet=1M set-variable = thread_stack=64K set-variable = table_cache=4 set-variable = sort_buffer=64K set-variable = net_buffer_length=2K
[mysqld]# Uncomment the following rows if you move the MySQL distribution to another location basedir = c:/mysql/ # MySQL 安装目录 一定要用“/” datadir = c:/mysql/data/ # MySQL 数据库目录 #bind-address=192.168.0.2 # 本机IP地址 port=3306 # 使用的TCP/IP端口 #language=chinese # MySQL 服务返回信息所用语种 (目前没有中文,需自己汉化) default-character-set=gb2312 # 设置默认字符集为GB2312# Uncomment the following if you want to log updates log-bin = d:/mysql/log/123.log # 二进制日志文件路径 log=d:/mysql/log/sql.log # 更新日志文件路径
mysql3.23.52
basedir = d:/mysql/
datadir = d:/mysql/data/
#bind-address=192.168.0.2
port=3306
#language=chinese
default-character-set=gb2312# Uncomment the following if you want to log updates
log-bin = d:/mysql/log/123.log
log=d:/mysql/log/sql.log#socket=MySQLset-variable = key_buffer=16K
set-variable = max_allowed_packet=1M
set-variable = thread_stack=64K
set-variable = table_cache=4
set-variable = sort_buffer=64K
set-variable = net_buffer_length=2K
basedir = c:/mysql/ # MySQL 安装目录 一定要用“/”
datadir = c:/mysql/data/ # MySQL 数据库目录
#bind-address=192.168.0.2 # 本机IP地址
port=3306 # 使用的TCP/IP端口
#language=chinese # MySQL 服务返回信息所用语种 (目前没有中文,需自己汉化)
default-character-set=gb2312 # 设置默认字符集为GB2312# Uncomment the following if you want to log updates
log-bin = d:/mysql/log/123.log # 二进制日志文件路径
log=d:/mysql/log/sql.log # 更新日志文件路径
然后启动MYSQL,我再启动那个MYDQLADMIN时他提示我输入用户名,密码,我输入ROOT相应的密码后,OK