呵呵,安装完后,运行winmysqladmin.exe它会自动为你配置好默认参数的,# Uncomment the following rows if you move the MySQL distribution to another location
basedir =D:/mysql
datadir =D:/mysql/data
#tmpdir#=
# 临时文件存放目录
#bind-address=192.168.0.2
# 本机的IP地址
port=3306
# 所占用的IP端口
language =chinese
# 服务器返回信息语言
default-character-set =gb2312
# 服务器默认的字符集,加上后就支持中文字段,中文索引等
#timezone =GMT+ 8
# 时区北京# Uncomment the following if you want to log updates
log-bin = d:/mysql/log/123.log 
#  二进制Log文件,用于镜像服务器
log =d:/mysql/log/sql.log
#  Log记录
local-infile =1
# 允许使用 LOAD  DATA  LOCAL
#socket =MySQL
skip-lockingset-variable = key_buffer=16K
set-variable = max_allowed_packet=1M
set-variable = thread_concurrency=4
#  CPU数目*2
set-variable = thread_stack=64K
set-variable = table_cache=4
set-variable = sort_buffer=64K
set-variable = net_buffer_length=2K
server-id = 1# Un comment the following if you are NOT using BDB tables
skip-bdb# Uncomment the following if you are using Innobase tables
skip-innodb
innodb_data_home_dir = e:\mysql\ibdata
innodb_data_file_path = ibdata1:1000M
#  数据文件必须能容下数据和索引
set-variable = innodb_buffer_pool_size=50M
#  设置缓冲池大小为内存的 50 - 80 %
set-variable = innodb_additional_mem_pool_size=5M
innodb_log_group_home_dir = e:\mysql\ibdata\iblogs
innodb_log_arch_dir = e:\mysql\ibdata\iblogs
#  log_arch_dir 必须和 log_group_home_dir 一样
innodb_log_archive=0
set-variable = innodb_log_files_in_group=3
set-variable = innodb_log_file_size=10M
#  设置日志文件大小为缓冲池的 15%。
set-variable = innodb_log_buffer_size=8M
innodb_flush_log_at_trx_commit=1
#  如果丢失最近的几个事务影响不大的话,设置 flush_log_at_trx_commit 为 0。
set-variable = innodb_file_io_threads=4
set-variable = innodb_lock_wait_timeout=50
[WinMySQLadmin]
Server=D:/mysql/bin/mysqld-max-nt.exe
user=root
password= 

解决方案 »

  1.   

    还有。我要是从装系统。系统在C:,在从装完后,那个MYSQL还能否运行。MYSQL在D:
      

  2.   

    呵呵,
    可以的,
    只要你保存my.ini文件即可,MySQL的安装只不过起到一个文件复制作用,
    它不会在你的系统目录下增加任何文件,
      

  3.   

    首先,不同的操作系统不一样操作。
    其次,我不知道你用的是php的哪个版本。
    还有,我不知道你用的是mysql的哪个版本(最新版windows的,如 shuixin13(犬犬(心帆)) ,傻瓜式安装,基本不用你自己配置。 
      

  4.   

    我刚DOWN一个3.23.53.安装中。安装完毕。可是无法连接。有如下提示:Error 
    MySQL said: 
    Can't connect to MySQL server on 'localhost' (10061)是用ADMIN时提示的。在线等代。
      

  5.   

    呵呵,
    MySQL服务器还没起动呢,
    需要先启动它,在WIN32下你要运行 mysql\bin\winmysqladmin.exe
      

  6.   

    1 下载MySQL并解压缩
      http://www.mysql.com/downloads/mysql.html2 运行setup.exe3 设置
    ---------------------------------------------------------------你在安装完成以后,找到mysql\bin目录,里面有一个
    winmysqladmin.exe
    文件,双击执行它,
    第一次运行时,它会出现一个WinMySQLadmin Quick Setup窗口Create the my.ini file with default values and the user below. Recommended to novice user.
    ->以下面输入的用户名与默认值建立 my.ini 文件,适合初学者。
    你只需在 User name 框中输入: root 
             Password 框中输入:  一个空格
    然后点击 OK 键该步做完成,它会在你的系统目录下建立一个 my.ini 的文件,这是一个很重要的配置文件
    WIN9x 系统下:[WINDOWS]目录下
    WIN2K 系统下:{WINNT}目录下
    WINXP 系统下:[WINDOWS]目录下my.ini 文件内容为下
    --------------------------------------------------------------------------
    #This File was made using the WinMySQLAdmin 1.3 Tool
    #2002-11-6 18:26:42#Uncomment or Add only the keys that you know how works.
    #Read the MySQL Manual for instructions[mysqld]
    basedir=D:/mysql               # MySQL安装目录 :: 一定要用“/”来表示路径,因“\”是MySQL中转义符
    #bind-address=192.168.0.2      # 本机的IP地址 未使用
    datadir=D:/mysql/data          # MySQL数据库目录
    #language=D:/mysql/share/your language directory  
                                   # 返回错误信息所用的语言 未使用 默认为English
    #slow query log#=              # 记录SQL操作日志 未使用
    #tmpdir#=                      # 临时目录        未定义
    #port=3306                     # 所用的TCP/IP端口 未定义 默认为 3306
    #set-variable=key_buffer=16M   # 索引块缓冲大小为16M 未定义 默认为8M[WinMySQLadmin]
    Server=D:/mysql/bin/mysqld-nt.exe
    user=root
    password= ------------------------------------------------------------------------------
    在界面上右击会出现如下的菜单:[Hide me]
    [Win 9x]----------------------------------------> [ShutDown this Tool]
    [Win NT]---->[ShutDown this Toos]                 [ShutDown the Server]
                 [Stop the Server]                    [ShutDown Both]
                 [Remove the Service]
                 [Start the Server Standalone]
    在 Win9x 下你
    [Start the Server] 与 [ShutDown the Server] 来启动与关闭 MySQL 服务在 WINNT 下你应该在 NT 上安装MySQL作为一种服务
    [Install the Server] 与 [Remove the Service] 来安装与删除 MySQL 服务
    [Start the Server] 与 [Stop the Server] 来启动与关闭 MySQL 服务
    如果你不想作为一种服务启动mysqld-nt,你可以 [Start the Server Standalone] 来启动它
    你也可以在命令提示符下:
    D:\mysql\bin\mysqld --install    安装服务
    D:\mysql\bin\mysqld --uninstall  删除服务
    D:\mysql\bin\NET START mysql     启动服务
    D:\mysql\bin\NET STOP mysql      关闭服务
    D:\mysql\bin\mysqld-nt --standalone  非服务方式启动 MySQL