MySql 5.6.36 64位绿色版安装图文教程,需要的朋友可以参考下网上MySQL安装的文章有很多哈,但是今天在自己的笔记本上安装遇到了问题">
当前位置:Gxlcms > mysql > MySql5.6.36在64位系统下的绿色版安装图文教程

MySql5.6.36在64位系统下的绿色版安装图文教程

时间:2021-07-01 10:21:17 帮助过:57人阅读

这篇文章主要介绍了php.cn/wiki/1160.html" target="_blank">MySql 5.6.36 64位绿色版安装图文教程,需要的朋友可以参考下

网上MySQL安装的文章有很多哈,但是今天在自己的笔记本上安装遇到了问题,仅此做下记录。

1、下载MySQL的zip压缩包,

2、下载下来之后解压到你指的文件夹。这是我解压后的路径。

3、配置环境变量,和配置Java的环境变量一样。

4、更改数据库配置文件。将根目录下的my-default.ini复制一份重命名为my.ini

更改里面的配置,注意里面的文件路径 一定要加英文的双引号。

  1. <span style="font-size:14px;"># For advice on how to change settings please see
  2. # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
  3. # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
  4. # *** default location during install, and will be replaced if you
  5. # *** upgrade to a newer version of MySQL.
  6. [mysqld]
  7. # Remove leading # and set to the amount of RAM for the most important data
  8. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  9. # innodb_buffer_pool_size = 128M
  10. # Remove leading # to turn on a very important data integrity option: logging
  11. # changes to the binary log between backups.
  12. # log_bin
  13. # These are commonly set, remove the # and set as required.
  14. basedir ="D:\Program Files\mysql-5.6.36-winx64"
  15. datadir ="D:\Program Files\mysql-5.6.36-winx64\data"
  16. # port = .....
  17. # server_id = .....
  18. # Remove leading # to set options mainly useful for reporting servers.
  19. # The server defaults are faster for transactions and fast SELECTs.
  20. # Adjust sizes as needed, experiment to find the optimal values.
  21. # join_buffer_size = 128M
  22. # sort_buffer_size = 2M
  23. # read_rnd_buffer_size = 2M
  24. sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
  25. #服务端的编码方式
  26. character-set-server=utf8
  27. [client]
  28. #客户端编码方式,最好和服务端保存一致
  29. loose-default-character-set = utf8
  30. [WinMySQLadmin]
  31. Server = "D:\Program Files\mysql-5.6.36-winx64\bin\mysqld.exe"
  32. </span>

5、安装mysql服务 ,dos窗口切换到MySQL的bin 目录下 执行命令

  1. mysqld -install

我的出了问题,网上找了下说是缺少Microsoft Visual C++ 2010 运行库。

好吧,去官网下 这个 安装好重启了 服务安装成功。

运行services.msc查看注册的服务,然后启动MySQL服务。

到此我们MySQL服务器已经安装完毕了。

6、登录MySQL服务器,重新设置密码。

由于默认的用户名为root 密码为空 使用命令mysql –u root –p按回车提示输入密码直接回车就可以登录啦。到此mysql-5.6.36-winx64绿色版就安装成功。

我们改下默认密码吧,还是在bin命令目录下,使用mysqladmin.exe命令改密码

mysqladmin –u root –p password 123456//123456是新密码,按回车提示输入密码,此时为原来的密码,原密码为空直接回车就修改成功了。

使用新密码登录

黑窗口下操作着实不方便,实际工作中mysql的可视化工具用的最多是navicat for mysql 这个工具。

以上就是MySql5.6.36在64位系统下的绿色版安装图文教程的详细内容,更多请关注Gxl网其它相关文章!

人气教程排行