`
egox
  • 浏览: 43760 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

MySql5.1 noinstall 配置及安装

阅读更多

 

# Example MySQL config file for very large systems.
#
# This is for a large system with memory of 1G-2G where the system runs mainly
# MySQL.
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
default-character-set=utf8

#password	= your_password
port		= 3306
socket		= MySQL



# Here follows entries for some specific programs

# The MySQL server
[mysqld]
default-character-set=utf8
basedir="E:/soft/mysql/"
datadir="E:/soft/mysql/data/"
default-storage-engine = MYISAM

port		= 3306
socket		= MySQL
skip-locking
key_buffer_size = 384M
max_allowed_packet = 32M
table_open_cache = 512
sort_buffer_size = 4M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
# 
#skip-networking

# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id	= 1

# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
#    the syntax is:
#
#    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
#    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
#    where you replace <host>, <user>, <password> by quoted strings and
#    <port> by the master's port number (3306 by default).
#
#    Example:
#
#    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
#    MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
#    start replication for the first time (even unsuccessfully, for example
#    if you mistyped the password in master-password and the slave fails to
#    connect), the slave will create a master.info file, and any later
#    change in this file to the variables' values below will be ignored and
#    overridden by the content of the master.info file, unless you shutdown
#    the slave server, delete master.info and restart the slaver server.
#    For that reason, you may want to leave the lines below untouched
#    (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id       = 2
#
# The replication master for this slave - required
#master-host     =   <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user     =   <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password =   <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port     =  <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin
#
# binary logging format - mixed recommended 
binlog_format=mixed

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = C:\\mysql\\data\\
#innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
#innodb_log_group_home_dir = C:\\mysql\\data\\
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 384M
#innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 100M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
default-character-set=utf8

quick
max_allowed_packet = 32M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[myisamchk]
key_buffer_size = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

说明:
----------------------------
[client]
#设置客户端字符集
default-character-set=utf8
[mysqld] #设置字符集
default-character-set=utf8
#设置mysql路径
basedir=E:/mysql/
#设置mysql数据库的数据的存放路径
datadir=E:/mysql/data/
# 默认的存储引擎 default-storage-engine = MYISAM
#default 1M
max_allowed_packet = 32M
#default 2M
sort_buffer_size = 4M
[mysqldump]
#default 16M
max_allowed_packet = 32M
[mysql]
#设置字符集 default-character-set=utf8
---------------------------------
max_allowed_packet 参数说明: 参数的作用是,用来控制其通信缓冲区的最大长度。
sort_buffer_size 参数说明: 查询排序时所能使用的缓冲区大小。
注意:该参数对应的分配内存是每连接独占! 如果有100个连接,那么实际分配的总共排序缓冲区大小为100 × 6 = 600MB。 所以,对于内存在4GB左右的服务器推荐设置为6-8M。
----------------------------------------------------------
command:
(1)mysqld --install mysql
(2)net start mysql
(3)mysql -uroot -p(默认密码为空)
(4)mysql> use mysql
(5)mysql> update user set password=password("123456") where user="root";
(6)mysql> flush privileges;
(7)exit;

 

  • my.zip (2.2 KB)
  • 下载次数: 1
分享到:
评论

相关推荐

    mysql-noinstall-5.1.71-win32.part02.rar

    Mysql绿色版安装包,共包括mysql-noinstall-5.1.71-win32.part01.rar和mysql-noinstall-5.1.71-win32.part02.rar,2部分。

    mysql-noinstall-5.1.73-winx64.zi

    便携版win64 mysql5.1下载链接文件,分享给需要的朋友。

    mysql-noinstall-5.1.45-winx64.zip

    "mysql-noinstall-5.1.45-winx64.zip"是一个为Windows 64位操作系统编译的MySQL安装包,它不包含图形化的安装向导,而是通过命令行进行安装和配置。 1. **无安装版**: "noinstall"意味着这是一个便携式或免安装版本...

    mysql-gui-tools-noinstall-5.0-r17-win32.rar

    这个压缩包"mysql-gui-tools-noinstall-5.0-r17-win32.rar"包含了四个核心组件,分别适用于不同的数据库任务: 1. **MySQL System Tray Monitor**: 这是MySQL的系统托盘监控工具,允许用户在Windows任务栏的通知...

    mysql-noinstall-5.1.73-win32.zip

    便携版云盘下载链接 mysql-noinstall-5.1.73-win32.zip

    mysql-noinstall-5.1.72-winx64

    mysql-noinstall-5.1.72-winx64,下载资源 Windows Server2012中安装MySQL同以往版本安装并没有什么不同。 2.1.从MySQL官方:http://dev.mysql.com/downloads/mysql/5.1.html下载Windows (x86, 64-bit), MSI ...

    mysql-noinstall-5.1.69-win32.rar

    2. **配置文件**:虽然这是无安装版本,但MySQL仍然需要一个配置文件(my.ini或my.cnf)来设定数据库参数。通常,该文件在解压后的根目录下,用户可以根据需求修改以调整内存使用、日志记录等设置。 3. **安全设置*...

    win2003 安装2个mysql实例做主从同步服务配置

    配置前的准备: 2台电脑,均安装windows2003 64位。均分三区c,d,e.... cd d:\mysql5.1\bin mysqld install mysql5.1 //安装mysql服务,名称为mysql5.1 3:配置my.ini。其中以下为必须的 default-characte

    mysql-connector-odbc-noinstall-5.1.9-winx64

    5. **多版本支持**:`5.1.9` 版本可能对应 MySQL 数据库的 5.1.x 系列,它能与不同版本的 MySQL 服务器进行交互,但要注意兼容性问题。 6. **无安装版本**:此版本是“无安装”版本,意味着它不需要通过传统安装...

    mysql-connector-odbc-noinstall-5.1.8-winx64.zip_myodbc-win64_mys

    标题中的 "mysql-connector-odbc-noinstall-5.1.8-winx64.zip" 指的是 MySQL ODBC 驱动程序的非安装版本,适用于64位 Windows 操作系统。这个版本是5.1.8,可能包含了用于连接到 MySQL 数据库的各种组件。 在描述中...

    mysql-connector-odbc-5.1.6-win32.rar_MYSQL_mySQL ODBC_mysql ODBC

    MySQL是世界上最受欢迎的开源数据库系统之一,而MySQL Connector/ODBC则是MySQL数据库系统与应用...通过安装和配置MySQL Connector/ODBC,用户可以充分利用ODBC的灵活性和兼容性,无缝对接各种应用程序和MySQL数据库。

    mysql安装及卸载后注册表的删除.pdf

    包括Essentials Package(不包含嵌入式服务器和基准套件,带有自动安装程序和配置向导,无MySQL文档)、Complete Package(包含嵌入式服务器和基准套件,带有自动安装程序和配置向导,有MySQL文档)以及Noinstall ...

    MySQL大内存配置方案 如my-medium.ini、my-huge.ini等

    MySql noinstall-5.1.xx-win32 配置(原创) 1、解压mysql-noinstall-5.1.xx-win32.zip 到你喜欢的目录,例如:d:\php\mysql 2、在根目录d:\php\mysql中有五个配置信息文件: my-small.ini (内存 &lt;= 64M) my-...

    mySql odbc驱动 5.1.13

    免安装版本的MySQL ODBC驱动5.1.13意味着用户无需经历传统的安装过程,只需将包含驱动的文件解压到适当的位置,然后在ODBC数据源管理器中配置数据源即可。这对于那些需要快速部署或不希望在系统注册表中留下痕迹的...

    小度写范文电脑初学者入门教程 [21分钟MySQL,入门教程]模板.pdf

    配置MySQL 5.1免安装版,需要以下步骤: 1. 解压下载的mysql-noinstall-5.1.69-win32.zip文件到指定位置,例如C:\Program Files。 2. 将配置文件my-small.ini重命名为my.ini,并打开编辑。在[client]和[mysqld]部分...

    Windows Server 2003 下配置 MySQL 群集

    此存储引擎在 MySQL 5.0 及以上版本的二进制版本中提供,同时也包含在与最新 Linux 版本兼容的 RPM 包中。NDB Cluster 支持“内存中”和“磁盘中”数据库的部署,并采用无共享架构,这意味着系统能够利用低成本硬件...

    21 分钟 MySQL 入门教程

    1. **下载 MySQL 安装包**:以 MySQL 5.1 免安装版为例,可以从官方网站或其他可信来源下载 `mysql-noinstall-5.1.69-win32.zip`。 2. **解压安装包**:将下载好的文件解压到需要安装的位置,例如 `C:\Program Files...

    mysql入门教程补充版

    综上所述,MySQL作为一款广泛使用的RDBMS,其基本概念、安装配置、脚本编写、数据类型以及数据库操作都是学习MySQL入门的基础。通过理解这些知识点,开发者可以有效地管理数据库,执行各种操作,并进一步深入学习...

Global site tag (gtag.js) - Google Analytics