我下载的是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 = "C:\MySQL5"
datadir = "C:\MySQL5\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
# Disable Federated by default
skip-federated
# 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 BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000
# 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服务
从MS-DOS窗口进入目录E:\myserver\mysql-5.0.37-win32\bin,运行如下命令:
mysqld --install mysql --defaults-file=C:\MySQL5\my.ini
4、启动mysql数据库
还在上面的命令窗口里面,输入命令:net start
mysql
这样就启动了mysql
服务。
5、停止服务
执行
net stop
mysql
即可
6、删除服务
执行mysqld --remove
mysql
即可
7、修改密码
以上安装完毕之后,默认的root用户密码为空的。为了安全起见,需要设置一个root用户的密码。
C:\>cd MySQL5
C:\MySQL5>cd bin
C:\MySQL5\bin>mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.67-community-log MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql
Database changed
mysql> update User set Password=PASSWORD('admin') where User='root';
Query OK, 2 rows affected (0.08 sec)
Rows matched: 2 Changed: 2 Warnings: 0
分享到:
相关推荐
mysql8.0.13免安装版配置操作步骤 包括ini的设置 程序中怎么配置
msyql5.7 绿色版 安装步骤,木有安装包,木有安装包,木有安装包,重要的事情说三遍,有msvcr120.dll 和msvcp120.dll 都是win7 64位的,还有visual c++ 2015运行环境
首先大家了解一下什么是MySQL? MySQL是一个关系型数据库管理系统...下面本文已MySQL Community Server 5.7.20为例,主要讲述一下mysql-5.7.20-winx64.zip绿色版安装详细图文步骤,注意的是下载mysql-5.7.20-winx64.zip
linux下 mysql的安装和卸载 二进制版本的mysql是已经编译好的,无需 configure ,make make install 等步骤,只需配置一 下即可使用,卸载也方便,直接删除即可;现在以mysql-standard-4.1.13-pc-linux-gnu-i686....
CentOS7安装Mysql8.0.20步骤: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-20.html 官网下载有时速度比较慢,直接点击链接也可以下载:mysql 8.0.20 官网下载8.0.20Mysql包(bundle版本) 1.创
一、安装MySQL数据库 1、下载MySQL-5.6.17-winx64.zip文件。 2、解压到指定目录,本例为D:\mysql-5.6.17-winx64。 3、修改配置文件,my-default.ini名称改为:my.ini,文件里面的参数配置: [mysqld] # 设置...
首先下载MySQL的是绿色免安装版,放到随便一个文件夹也可以,这次我直接放在了C盘 步骤: 1、将my-default.ini(ini如果没有后缀就是my-default) 复制后改名为my.ini(ini如果没有后缀就是my),然后复制以下内容把...
完全的解压版,解压即可用,十分方便,对于初学数据库者十分有用,初学者对于连接数据库往往十分头疼,这个软件大大减少了繁琐的步骤!!
记忆中mysql从5开始,windows版就不提供setup了,直接解压做配置后使用,感觉没有之前方便了,以下是我的安装步骤: 1、解压到D:\mysql 2、在mysql目录下新建my.ini配置文件,根据需要进行配置,一般配置以下内容...
绿色生鲜商城 手机 微信商城 APP最新...绿色生鲜商城 手机 微信商城 APP最新版四合一安装步骤 安装环境php版本5.3 1:解压压缩包,把源码上传到网站根目录下 2:方法二:使用PHPMyAdmin或Navicat导入根目录中的shengx
那么先执行uninstall.bat,然后按上面步骤移动目录并改相应文件里的目录名称,然后再执行install.bat即可。 另外,虽然上面的内容中所说的“安装”等词汇,但所有一切内容,都不写注册表。完全绿化。 四、升级 ...
绿色生鲜商城 手机 微信商城 APP最新版四合一安装步骤 安装环境php版本5.3 1:解压压缩包,把源码上传到网站根目录下 2:方法二:使用PHPMyAdmin或Navicat导入根目录中的shengxuan2018.sql到您的数据库 3:数据库...
绿色生鲜商城 手机 微信商城 APP最新...绿色生鲜商城 手机 微信商城 APP最新版四合一安装步骤 安装环境php版本5.3 1:解压压缩包,把源码上传到网站根目录下 2:方法二:使用PHPMyAdmin或Navicat导入根目录中的shengx
本视频是目前关于delphi for php最详实的中文教学视频,操作步骤详细!十分易学易用!...8.绿色版mysql使用.swf 9.数据导入.swf 10.数据分页.swf 11.隐藏文件域的使用.swf 12.用户认证.swf 13.网站发布.swf
1、货源网源码2016最新版电脑加手机端微信三合一数据同步2、网站风格大气,后台功能强大绿色色大气美观3、适合微商企业 以及微商运营者 合身定做4、电脑手机自动适应 可接入微信平台安装环境:PHP5.3+Mysql安装步骤...
绿色装修公司网站模板_小兵装修系统安装步骤: 1、将压缩包文件解压到服务器根目录; 2、联系官方授权域名,享受正版授权,永久升级、售后支持 3、在浏览器中输入:你的域名/install.php,进入CMS安装界面; 4、...
绿色免费wap建站系统WAPEQ(纯免费官方版...将程序上传到空间,访问首页将直接进入安装步骤,程序自动提示数据库连接配置,管理员设置 三、进入管理后台 管理后台在admin文件夹下,一般访问路径http://你的域名/admin
VueFileManager,版本号 v2.0.2。基于 Laravel 和 Vue 开发的一款网盘程序源码,界面十分美观,且支持本地储存、亚马逊 S3、阿里云 OSS...这是安装过程中最困难的部分,请按照安装向导的每个步骤中的说明成功安装 VueFi
安装步骤: -------------- 1. 设置FTP上传工具的传送模式为"二进制", 否则上传的PHP程序可能会在运行时发生意想不到的错误. 如设置FlashFXP:选项 -> 参数设置 -> 打开对话框 -> 传送 -> 在传送模式中选择"二...
使用由 Laravel 和 Vue 开发的一款网盘程序源码,界面十分美观,...这是安装过程中最困难的部分,请按照安装向导的每个步骤中的说明成功安装 VueFileManager。 7. 将以下 Cron 条目添加到您的服务器,注意更改你的路径