呵呵,安装完后,运行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=
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、一个表(如果需要拆分请说明)的数据,希望可以快速删除某一特定时段内的数据(大概30w-200w行)2、不影响或加快查询速度 3、好管理
- 请问MySQL查询时只会使用一个索引吗?
- 关于日期的截取函数!
- 查询出各年龄段人并且该年龄段的人数大于3才被返回,降序,0到10条.请问怎么写命令,谢谢
- varchar与char的基础疑惑问题
- 问一个普通的sql,新手望好人回答。
- sql后缀的文件如何变成sql的数据库内容
- 怎么解决:configure:eror:no size for char type?(急阿)
- 数据导入问题
- sql如何实现单表多关键字模糊查询,在线等
- 还是菜鸟的关于多表选择的问题,大虾们帮忙阿
- 如何将postgresql数据库移植到oracle或sql server2000
可以的,
只要你保存my.ini文件即可,MySQL的安装只不过起到一个文件复制作用,
它不会在你的系统目录下增加任何文件,
其次,我不知道你用的是php的哪个版本。
还有,我不知道你用的是mysql的哪个版本(最新版windows的,如 shuixin13(犬犬(心帆)) ,傻瓜式安装,基本不用你自己配置。
MySQL said:
Can't connect to MySQL server on 'localhost' (10061)是用ADMIN时提示的。在线等代。
MySQL服务器还没起动呢,
需要先启动它,在WIN32下你要运行 mysql\bin\winmysqladmin.exe
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