window7 64位安装mysql(绿色版)
http://blog.csdn.net/mhmyqn/article/details/17043921
2013-12-17 21:25:54| 分类: 数据库 | 标签:mysql win7 64位 |举报|字号 订阅
背景:之前都是搞得32位的,并且安装也做了很多的记录,但是今天是安装一个64位的,刚开始认为应该是一个套路没有什么难点,可是后来发现还是有点麻烦的做下记录,同时希望对其他网友有所帮助。
第一步:
如果之前安装过mysql并且安装失败了,请卸载干净。
第二步
下载安装问,到mysql官方网站进行下载,这里给个链接直接可以下载不用注册用户登录了:http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.15-winx64.zip直接在迅雷中粘贴这个地址就可以下载。
第三步
开始安装,
将下载的zip包加压到你自己的目录,然后开始注册mysql服务,这是最关键的一步,比较简单,但是也比较容易出错。
(1)打开解压的文件,找到my-default.ini文件,打开此文件,编辑,添加内容
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
basedir=D:/Program Files/mysql-5.6.15-winx64
datadir=D:/Program Files/mysql-5.6.15-winx64/data
port=3306
server_id=10
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
红色部分是我们自己加的,根据自己情况填写
(2)配置环境变量
在path中添加mysql路径,指定到bin,这个大家都会的。
(3)注册服务
打开cmd,指定到解压目录的bin目录,执行命令:
mysqld install MySQL --defaults-file="你的ini文件路径,也就是上面修改的文件路径"
(4)启动服务
net start mysql
没有报错的话,提示启动成功
(5)修改我们的登录密码:
mysql -u root -p 初次密码为空
mysql>use mysql;
mysql>update user set Password=password('newpassword') where User='root';
mysql>flush privileges;
ok,安装完成。
第四步操作数据了。
分享到:
相关推荐
java连接数据库Jconnection
mysql windows 驱动程序 如果要用sqlserver 做链接服务器的话 就要安装该驱动程序,用来创建一个odbc 数据源
安装32位的ODBC时,请提前安装... 解决方案:Visual C++ Redistributable Packages for Visual Studio 2013 (32位和64位的都安装) 参考下载链接:https://www.microsoft.com/zh-CN/download/details.aspx?id=40784
MariaDB and MySQL Common Table Expressions and Window Functions Revealed introduces and explains CTEs and window functions, newly available in MariaDB 10.2 and MySQL 8.0, and helps you understand why ...
在python 3.0及以上版本中,连接mysql数据库,在window下可用的组件。 编译环境为vc2005, python 3.1.2, mysql 为5.1,mypysql 版本是0.5.2。 包含全部源代码和编译配置,可自行编译。
MySQL版本:8.0.13-winx64 安装步骤比较简单,本文不再啰嗦,以下是runoob提供的安装说明: http://www.mscto.com/mysql/mysql-install.html 安装后遇到的问题: 一:Access denied for user ‘root’@’localhost’...
由 cannot create windows service for mysql 所引发的一系列mysql启动问题解决办法 Win7系统安装MySQL5.5.21图解
XtraBackup是一个用来备份 MySQL 的 InnoDB 数据库的开源工具。例如执行增量备份的命令是: # ./xtrabackup --backup --target-dir=/backup/delta --incremental-basedir=/backup/base
Get to grips with new features of MySQL 8 like CTE, Window functions and many more Perform backup tasks, recover data and set up various replication topologies for your database Maximize performance ...
MySQL88.0.19.0软件和安装教程,版本适合window,适合于后端和前端开发人员
nginx for window ,支持ngx_lua,redis,mysql,memcached,主要提供window上本地开发测试用 目的主要是提供一个基于nginx for window的lua web环境,Just enjoy it!。 个人站的话也可以考虑使用。 nginx版本为1.9.1 ...
mysql 安装程序2,for 32位window
64位版本,支持windowsxp,window7 ,window10,copy到windows的system32目录,支持lazarus的sqldbconnection。
2、docker中mysql、redis、nextcloud安装方法。 3、nextcloud安装具体步骤及图片说明。 本文中设置了mysql为容器内连接,提高了云盘的安全性,同时加入redis配制,提高了云盘的整体性能。 整个操作都有详细的图片...
What You Will Learn Install and configure your MySQL 8 instance without any hassle Get to grips with new features of MySQL 8 like CTE, Window functions and many more Perform backup tasks, recover data...
Nginx+PHP+MySQL (Windows版)
四、安装Memcache服务器(Linux和Window上分别安装) Windows下 Memcahced.exe -d install [uninstall] Memcached.exe –d -m 50 –l 127.0.0.1 -p 11211 start 五、Memcached服务器的管理(启动) ...
Cacti for Windows安装方法 在文件夹include下的config.php中可配置你的数据库信息。 $database_type = "mysql"; //数据库类型 $database_default = "cacti"; //数据库名称 $database_hostname = "localhost"; /...
解压到linux下手进入目录,运行./start_navicat即可,和window的一样操作