`
eimhee
  • 浏览: 2149405 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

绿色版mysql安装步骤-

阅读更多
一、下载MySQL
http://www.mysql.org/downloads
我下载的是mysql-noinstall-5.0.67-win32.zip
二、安装过程
 1、解压缩
mysql-noinstall-5.0.67-win32.zip 到一个C盘,重新命名为 MySQL5
      假定MYSQL_HOME=C:\
MySQL5
 2、编辑mysql的运行配置文件my.ini,如果没有,可以拿my-medium.ini复制然后更名成 my.ini


# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is C:\mysql\data) or
# ~/.my.cnf to set user-specific options.
#
# 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]
#password	= your_password
port		= 3306
socket		= /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
basedir = "D:\ide\mysql-5.2.3-falcon-alpha-win32"  
datadir = "D:\ide\mysql-5.2.3-falcon-alpha-win32\data"  
default-character-set=utf8  

port		= 3306
socket		= /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

# 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

# Point the following paths to different dedicated disks
#tmpdir		= /tmp/		
#log-update 	= /path-to-dedicated-directory/hostname

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = C:\mysql\data/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = C:\mysql\data/
#innodb_log_arch_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 = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

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

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
 

 [mysqld]
# 设置mysql的安装目录
basedir=$MYSQL_HOME
# 设置mysql数据库的数据的存放目录,必须是data,或者是\\xxx\data
datadir=$MYSQL_HOME\data
# 设置mysql服务器的字符集
default-character-set=utf8
 
[client]
# 设置mysql客户端的字符集
default-character-set=gbk


3、启动mysql数据库
还在上面的命令窗口里面,输入命令:net start
mysql
这样就启动了mysql 服务。

或者输入mysqld.exe

5、停止服务
执行
net stop mysql 即可

6、删除服务
执行mysqld --remove
mysql 即可

7. 连接

mysql -u root -p
分享到:
评论

相关推荐

    mysql8.0(免安装版)(mysql-8.0.33-winx64.zip,VC-redist.x64.exe)

    安装MySQL 8.0免安装版的步骤通常包括解压`mysql-8.0.33-winx64.zip`,配置`my.ini`文件以指定数据目录和其他设置,然后启动MySQL服务。`VC_redist.x64.exe`需要在安装MySQL之前或之后安装,以确保所有依赖项得到...

    mysql官方绿色安装包32位 mysql-5.7.36-win32

    在使用这个32位绿色版MySQL时,用户需要确保系统满足其硬件和软件需求,并遵循解压后的使用指南。通常,这包括配置my.ini文件以设置数据库参数,创建数据目录,然后启动MySQL服务。由于是便携版,这些步骤相对简单,...

    Mysql精简版 - Mysql绿色版 - Mysql5 下载

    安装MySQL绿色版的基本步骤如下: 1. 下载并解压MySQL5-green压缩包到你希望的位置,例如`C:\MySQL5-green`。 2. 打开`my.ini`文件,配置服务器参数,如设置`datadir`指向`data`目录,确保路径正确。 3. 如果需要,...

    mySQL绿色解压版免安装

    在解压MySQL绿色版之后,你需要进行以下步骤来设置和运行服务: 1. **配置MySQL**:找到并编辑`my.ini`或`my.cnf`配置文件,根据你的需求调整服务器参数,如端口号、数据存储路径、用户权限等。 2. **初始化数据库...

    MySQL5.5绿色版(免安装)

    MySQL5.5绿色版是一款无需安装的数据库管理系统,特别适合于对系统资源有限制或者希望快速部署MySQL环境的用户。它的大小约为10MB,这使得它非常轻巧,易于在各种设备上进行快速下载和使用。解压缩后,用户可以直接...

    MySQL 5.7.27详细下载安装配置教程

    总之,MySQL 5.7.27的下载安装配置过程涉及多个步骤,每个环节都需要细心处理。理解这些基本操作,将有助于你更好地管理和利用MySQL数据库。随着对MySQL的深入学习,你将能够构建高效、可靠的数据库解决方案,为你的...

    mysql-5.5.53-linux简化版_绿色.tar.gz

    这个特定的压缩包"mysql-5.5.53-linux简化版_绿色.tar.gz"是一个针对Linux操作系统的MySQL服务器的精简版本,专为CentOS 6或7设计。由于它是“绿色”版本,意味着它不需要复杂的安装过程,用户只需解压后即可直接...

    mysql-5-winx64.zip

    这个压缩文件包含了安装和运行MySQL 5.x版本所需的所有组件,使得用户能够在64位Windows环境下搭建和管理MySQL服务器。 【描述】中的重复内容"mysql-5-winx64.zip mysql-5-winx64.zip mysql-5-winx64.zip"可能是...

    社区绿色版mysql的安装与配置1

    ### 社区绿色版MySQL的安装与配置 #### 一、安装步骤 ##### 1. 下载MySQL - 访问官方下载页面: [https://dev.mysql.com/downloads/mysql/](https://dev.mysql.com/downloads/mysql/) - 选择适用于Windows平台的...

    mysql绿色免安装版

    下面将详细介绍这款绿色版MySQL的特点、优势以及如何使用。 1. **特点**: - **便携性**:由于MySQL绿色版是压缩文件,解压后即可使用,不需在系统注册表中留下痕迹,方便在不同的计算机上携带和使用。 - **简洁...

    MySQL5.7.17绿色版数据库安装详细说明

    通过以上步骤,可以成功安装并配置MySQL 5.7.17绿色版数据库。在整个安装过程中,需要注意每一步的具体操作细节,以避免因配置不当导致的问题。此外,针对不同的操作系统或环境,部分命令或步骤可能会有所差异,请...

    64位 win10系统安装绿色版mysql-5.7.16-winx64的教程

    本文主要介绍了在64位Windows 10操作系统上安装MySQL 5.7.16绿色版(即无需安装的版本)的详细教程。MySQL是一个流行的关系型数据库管理系统(RDBMS),广泛应用于网站和商业软件中,用于存储、查询和管理大量数据。...

    mysql-5.7.26-win32(绿色精简版).rar

    - **便携性**:绿色版的 MySQL 可以直接解压到任意位置使用,无需安装,方便在不同电脑间移动或备份。 - **精简**:相比官方完整版,此版本可能去除了不必要的组件和服务,减小了文件体积,节省硬盘空间。 - **...

    MySQL GUI Tools 5.0-r16中文绿色版【可视化MySQL数据库控制台】

    这个中文绿色版特别适合那些不希望进行复杂安装过程或者需要在不同计算机上快速使用的用户。 1. **MySQL GUI Tools介绍** MySQL GUI Tools是MySQL公司开发的一套完整的数据库管理解决方案,它包含了三个主要组件:...

    mysql-8.0.18-winx64.zip

    Windows版MySQL与Unix或Linux上的版本在某些方面有所不同,比如服务管理方式、路径分隔符等,因此对于Windows用户来说,这个免安装版本特别方便。 在压缩包内,"mysql-8.0.18-winx64"很可能包含了MySQL服务器的所有...

    MySql 纯绿色免安装版本

    “自动配置”标签表明,这个绿色版MySQL在启动时会自动完成一些基本的配置工作,比如设置默认的数据库路径、端口号等,使用户能够快速开始使用。对于不熟悉数据库管理的新手来说,这是一个非常友好的特性,因为它...

Global site tag (gtag.js) - Google Analytics