windows7 32bit下MySQL5.5.22安装笔记_MySQL

php中文网
发布: 2016-06-01 13:42:38
原创
1418人浏览过

bitsCN.com
1. 准备文件   mysql解压版  下载地址ftp://ftp.iij.ad.jp/pub/db/mysql/Downloads/MySQL-5.5/mysql-5.5.22-win32.zip 2. 解压到本地目录   D:/devTools/mysql 3. 把添加系统环境变量   MYSQL_HOME  ==> D:/devTools/mysql  (新建)   Path                ==> ;%MYSQL_HOME%/bin  (追加) 4. 修改MySQL5.5的配置文件,把my-small.ini改名为my.ini进行编辑   a)在[mysqld]下追加       -------   basedir = "d://devTools//mysql"   datadir = "d://devTools//mysql//data"   character-set-server = utf8   -------   b) 在[client]下追加   -------   default-character-set = utf8   ------- 5. 保存my.ini的配置, 然后打开命令行(开始菜单==>运行==>cmd )   输入: mysqld --console 然后回车将看到如下类似内容:   -------   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.22'  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.22 MySQL Community Server (GPL)    Copyright (c) 2000, 2011, 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.   -------   ==〉看到上面类似内容说明登陆成功,此时的root帐号是没有密码的   执行命令修改密码:    use mysql;     update user set password=PASSWORD("这里填写你要设置的密码") where user='root';      执行完成后退出mysql操作,然后关闭mysql服务(ctrl+C 关闭另一个命令窗口),然后重启mysql服务   作者 lotnhiro bitsCN.com

相关标签:
最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号