`
lotnhiro
  • 浏览: 6231 次
  • 性别: Icon_minigender_1
  • 来自: 珠海
最近访客 更多访客>>
社区版块
存档分类
最新评论

windows 7 32 or 64bit 下 MySQL 5.5 安装笔记

阅读更多

1. 准备文件
   mysql 5.5 解压版(绿色版) 下载地址    

   http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.30-win32.zip       (32 bit)

   http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.30-winx64.zip      (64 bit)

                  
2. 解压到本地目录
   D:\devTools\mysql

3. 把MySql添加到系统环境变量
   MYSQL_HOME  ==>    D:\devTools\mysql  (新建)
   Path                   ==>    ;%MYSQL_HOME%\bin  (追加)

4. 修改MySQL5.5的配置文件,把my-small.ini(我用的是my-large.ini)改名为my.ini进行编辑
   a). 在[client]下追加

#设置mysql客户端的字符集
default-character-set = utf8

 

    b). 在[mysqld]下追加

#设置mysql的安装目录
basedir = D:\DevTools\mysql
#设置mysql数据库的数据存放目录,必须是data或者\xxx-data
datadir = D:\DevTools\mysql\data
#设置服务器段的字符集
character_set_server = utf8


5. 保存my.ini的配置, 然后打开命令行(开始菜单==>运行==>cmd )
   输入: mysqld --console  然后回车将看到如下类似内容:

C:\Users\Lstoryc>mysqld --console
130405 15:22:50 [Note] Plugin 'FEDERATED' is disabled.
130405 15:22:50 InnoDB: The InnoDB memory heap is disabled
130405 15:22:50 InnoDB: Mutexes and rw_locks use Windows interlocked functions
130405 15:22:50 InnoDB: Compressed tables use zlib 1.2.3
130405 15:22:50 InnoDB: Initializing buffer pool, size = 128.0M
130405 15:22:50 InnoDB: Completed initialization of buffer pool
130405 15:22:50 InnoDB: highest supported file format is Barracuda.
130405 15:22:51  InnoDB: Waiting for the background threads to start
130405 15:22:52 InnoDB: 5.5.30 started; log sequence number 2537522
130405 15:22:52 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
130405 15:22:52 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
130405 15:22:52 [Note] Server socket created on IP: '0.0.0.0'.
130405 15:22:52 [Note] Event Scheduler: Loaded 0 events
130405 15:22:52 [Note] mysqld: ready for connections.
Version: '5.5.30-log'  socket: ''  port: 3306  MySQL Community Server (GPL)

   ==> 证明mysql服务已正常启动

6. 设置登陆mysql root帐号的的密码
    打开新的命令行,输入 mysql -uroot 回车

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.30-log MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

    ==〉看到上面类似内容说明登陆成功,此时的root帐号是没有密码的
    执行命令修改密码:

 

   use mysql;  

   update user set password=PASSWORD("这里填写你要设置的密码") where user='root';

  
   执行完成后退出mysql操作,然后关闭mysql服务(ctrl+C 关闭另一个命令窗口),然后重启mysql服务

 

 
Translate
From:— Detect language — Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bengali Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Esperanto Estonian Filipino Finnish French Galician Georgian German Greek Gujarati Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Kannada Korean Lao Latin Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Tamil Telugu Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish
From: Detect language
 
 
To:English — Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bengali Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Esperanto Estonian Filipino Finnish French Galician Georgian German Greek Gujarati Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Kannada Korean Lao Latin Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Tamil Telugu Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish
To: English
 
English
Spanish
French
Translate text or webpage
 
Type text or a website address or translate a document.
 
 
English
Spanish
Arabic
C:\Windows\system32>mysqld --console 120410 14:25:22 [Note] Plugin 'FEDERATED' is disabled. 120410 14:25:22 InnoDB: The InnoDB memory heap is disabled 120410 14:25:22 InnoDB: Mutexes and rw_locks use Windows interlocked functions 120410 14:25:22 InnoDB: Compressed tables use zlib 1.2.3 120410 14:25:22 InnoDB: Initializing buffer pool, size = 128.0M 120410 14:25:22 InnoDB: Completed initialization of buffer pool 120410 14:25:22 InnoDB: highest supported file format is Barracuda. 120410 14:25:22 InnoDB: Waiting for the background threads to start 120410 14:25:23 InnoDB: 1.1.8 started; log sequence number 1595675 120410 14:25:23 [Note] Event Scheduler: Loaded 0 events 120410 14:25:23 [Note] mysqld: ready for connections. Version: '5.5.30' socket: '' port: 3306 MySQL Community Server (GPL)
 
 
 
 

Dictionary

Would you mind answering some questions to help improve translation quality?
Drag and drop file or link here to translate the document or web page.
Drag and drop link here to translate the web page.
We do not support the type of file you drop. Please try other file types.
We do not support the type of link you drop. Please try link of other types.
分享到:
评论

相关推荐

    mysql5.5安装包 Windows (x86, 64-bit)

    MySQL 5.5在Windows平台上的安装过程相对简单,特别是对于初学者和程序员来说,能够快速搭建数据库环境,进行数据存储和管理。 安装包中包含的"mysql-5.5.62-winx64.msi"文件是MySQL 5.5.62的Windows安装程序,这个...

    MySQL5.5安装包和安装教程

    在Windows 64位系统上安装MySQL5.5,需要遵循一定的步骤,这里将详细介绍整个过程。 首先,你需要下载适用于Windows 64位系统的mysql-5.5-win64安装包。这个安装包包含了所有必要的文件,包括服务器组件、客户端...

    MYsql 5.5安装程序for 64bit

    数据库MYSQL5.5 安装包for win 64bit 绿色安装版

    mysql 5.5 32位

    在绿色版MySQL.txt文件中,可能包含了安装、配置和使用MySQL 5.5 32位的详细步骤,包括环境变量设置、服务注册、启动和停止服务的方法,以及可能的故障排查技巧。这份文档对于没有安装经验或者初次接触MySQL的用户来...

    mysql-shell:mysql-shell-8.4.0-windows-x86-64bit.zip

    要安装和使用MySQL Shell,首先需要从官方下载地址(https://dev.mysql.com/downloads/shell/)下载并解压`mysql-shell-8.4.0-windows-x86-64bit.zip`文件,然后按照安装指南进行安装。安装完成后,通过命令行启动...

    mysql-shell-8.0.18-windows-x86-64bit.zip

    mysql-shell-8.0.18-windows-x86-64bit.zip MySQL Shell is an advanced command-line client and code editor for MySQL. In addition to SQL, MySQL Shell also offers scripting capabilities for JavaScript ...

    MySql5.5-win7-64bit

    亲,很好用的数据库哦 。英文版带上Navicat Premium就变成了中文工具完美运行。速度飞快。

    MySQL Server 5.5(64bit).zip

    mySQL5.5软件安装包 及安装教程。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。...

    mysql5.5 安装详细图解.pdf

    ### MySQL 5.5.27 在 Windows 7 家庭普通版 64 位系统上的安装流程详解 #### 一、前言 本文档旨在详细介绍如何在 Windows 7 家庭普通版 64 位操作系统上安装 MySQL 5.5.27 数据库。考虑到MySQL作为当前市场上广泛...

    mysql-proxy-0.8.5-windows-x86-32bit

    `mysql-proxy-0.8.5-windows-x86-34bit` 是 MySQL Proxy 的一个特定版本,适用于32位Windows操作系统。 MySQL Proxy 的主要功能和优势包括: 1. **透明代理**:MySQL Proxy 可以悄无声息地插入到客户端和服务器...

    Microsoft Visual C++ 2013 Runtime 64bit 工具 (mysql安装需要)

    压缩包中的“Microsoft Visual C++ 2013 Runtime 64bit 工具(mysql安装需要).exe”文件是一个可执行文件,通常称为安装程序。双击该文件后,会引导用户进行安装流程,包括接受许可协议、选择安装路径等步骤。安装...

    mysql-connector-python-8.0.30-windows-x86-64bit.msi

    mysql-connector-python-8.0.30-windows-x86-64bit.msi

    SAP .Net Nco 3.0.22 Windows 平台 32bit 64bit

    SAP .Net Nco 3.0.22 windows 平台 32bit 64bit SAP ERP vs None SAP ERP connection

    需要:libQt5WebKitWidgets.so.5()(64bit) >= 5.5

    需要:libQt5WebKitWidgets.so.5()(64bit) >= 5.5 错误:软件包:teamviewer-13.1.3026-0.x86_64 (/teamviewer_13.1.3026.x86_64) 需要:libQt5WebKit.so.5()(64bit) >= 5.5 您可以尝试添加 --skip-broken 选项来...

    Turbo C++ 4.0 Windows 7 Windows 8 64Bit Version

    Turbo C++ 4.0 Windows 7 Windows 8 64Bit Version

    MySQL win7 64bit

    在安装MySQL 5.5.21 for Win7 64-bit时,用户应确保系统满足最低硬件要求,并遵循安装指南。安装过程中,可以选择自定义安装类型,例如仅安装服务器或同时安装客户端工具。完成后,可以通过命令行或图形化界面(如...

    MinGW-w64 - for 32 and 64 bit Windows

    MinGW-w64 - for 32 and 64 bit Windows The mingw-w64 project is a complete runtime environment for gcc to support binaries native to Windows 64-bit and 32-bit operating systems.

    mysql-connector-python-8.0.6-rc-py3.6-windows-x86-64bit.msi

    mysql-connector-python-8.0.6-rc-py3.6-windows-x86-64bit.msi

Global site tag (gtag.js) - Google Analytics