1. # 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.  
  7. [mysqld]
  8. character_set_server = utf8
  9. # Remove leading # and set to the amount of RAM for the most important data
  10. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  11. # innodb_buffer_pool_size = 128M
  12.  
  13. # Remove leading # to turn on a very important data integrity option: logging
  14. # changes to the binary log between backups.
  15. # log_bin
  16.  
  17. # These are commonly set, remove the # and set as required.
  18. basedir = C:\Program Files\mysql-5.6.24-winx64(自己配置好)
  19. datadir = C:\Program Files\mysql-5.6.24-winx64\data(自己配置好)
  20. port = 3306
  21. # server_id = .....
  22.  
  23. # Remove leading # to set options mainly useful for reporting servers.
  24. # The server defaults are faster for transactions and fast SELECTs.
  25. # Adjust sizes as needed, experiment to find the optimal values.
  26. # join_buffer_size = 128M
  27. # sort_buffer_size = 2M
  28. # read_rnd_buffer_size = 2M
  29.  
  30. sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
  31.  
  32. [client]
  33. port = 3306
  34. default-character-set = utf8

1.上面是修改my.ini配置,可以直接复制文件夹中的my-dafult.ini进行修改,记得修改basedir和datadir

2.进入mysql文件夹bin中,执行命令提示符

3.mysqld -install  进行安装mysql

4.net start mysql  开启mysql服务

5.mysql -u root -p  登录

6.show variables like 'char%'  查看编码,如下则没有编码问题。

由于mysql 5.7 没有data文件,所以需要自己建立.还有就是path配置,直接配置到bin就好了

mysql 5.5解压版配置 my.ini

  1. # Example MySQL config file for small systems.
  2. #
  3. # This is for a system with little memory (<= 64M) where MySQL is only used
  4. # from time to time and it's important that the mysqld daemon
  5. # doesn't use much resources.
  6. #
  7. # MySQL programs look for option files in a set of
  8. # locations which depend on the deployment platform.
  9. # You can copy this option file to one of those
  10. # locations. For information about these locations, see:
  11. # http://dev.mysql.com/doc/mysql/en/option-files.html
  12. #
  13. # In this file, you can use all long options that a program supports.
  14. # If you want to know which options a program supports, run the program
  15. # with the "--help" option.
  16.  
  17. # The following options will be passed to all MySQL clients
  18. [client]
  19. #password = your_password
  20. port = 3306
  21. socket = /tmp/mysql.sock
  22. default-character-set = utf8
  23.  
  24. # Here follows entries for some specific programs
  25.  
  26. # The MySQL server
  27. [mysqld]
  28. basedir = C:\Program Files\mysql5.5
  29. datadir = C:\Program Files\mysql5.5\data
  30. port = 3306
  31. socket = /tmp/mysql.sock
  32. skip-external-locking
  33. key_buffer_size = 16K
  34. max_allowed_packet = 1M
  35. table_open_cache = 4
  36. sort_buffer_size = 64K
  37. read_buffer_size = 256K
  38. read_rnd_buffer_size = 256K
  39. net_buffer_length = 2K
  40. thread_stack = 128K
  41. character_set_server = utf8
  42.  
  43. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  44. # if all processes that need to connect to mysqld run on the same host.
  45. # All interaction with mysqld must be made via Unix sockets or named pipes.
  46. # Note that using this option without enabling named pipes on Windows
  47. # (using the "enable-named-pipe" option) will render mysqld useless!
  48. #
  49. #skip-networking
  50. server-id = 1
  51.  
  52. # Uncomment the following if you want to log updates
  53. #log-bin=mysql-bin
  54.  
  55. # binary logging format - mixed recommended
  56. #binlog_format=mixed
  57.  
  58. # Causes updates to non-transactional engines using statement format to be
  59. # written directly to binary log. Before using this option make sure that
  60. # there are no dependencies between transactional and non-transactional
  61. # tables such as in the statement INSERT INTO t_myisam SELECT * FROM
  62. # t_innodb; otherwise, slaves may diverge from the master.
  63. #binlog_direct_non_transactional_updates=TRUE
  64.  
  65. # Uncomment the following if you are using InnoDB tables
  66. #innodb_data_home_dir = C:\\mysql\\data\\
  67. #innodb_data_file_path = ibdata1:10M:autoextend
  68. #innodb_log_group_home_dir = C:\\mysql\\data\\
  69. # You can set .._buffer_pool_size up to 50 - 80 %
  70. # of RAM but beware of setting memory usage too high
  71. #innodb_buffer_pool_size = 16M
  72. #innodb_additional_mem_pool_size = 2M
  73. # Set .._log_file_size to 25 % of buffer pool size
  74. #innodb_log_file_size = 5M
  75. #innodb_log_buffer_size = 8M
  76. #innodb_flush_log_at_trx_commit = 1
  77. #innodb_lock_wait_timeout = 50
  78.  
  79. [mysqldump]
  80. quick
  81. max_allowed_packet = 16M
  82.  
  83. [mysql]
  84. no-auto-rehash
  85. # Remove the next comment character if you are not familiar with SQL
  86. #safe-updates
  87.  
  88. [myisamchk]
  89. key_buffer_size = 8M
  90. sort_buffer_size = 8M
  91.  
  92. [mysqlhotcopy]
  93. interactive-timeout

mysql5.5 my.ini

Mysql 5.6 解压版配置方案的更多相关文章

  1. MySQL 5.7 解压版 安装教程(图文详细)[Windows]

    最近在学习中用到了MySQL数据库,在安装过程中遇到了不少问题,在翻了大半天百度后,问题基本都解决了,所以写一篇MySQL 5.7 解压版的图文详细安装教程. 至于为什么我会选择解压版而不是安装版,一 ...

  2. mysql解压版配置

    2. 解压MySQL压缩包 将以下载的MySQL压缩包解压到自定义目录下,我的解压目录是: "D:\Program Files\MySQL\mysql-5.6.13-win32" ...

  3. Mysql 64位解压版的安装

    先下载解压版的mysql 下载地址 https://dev.mysql.com/downloads/file/?id=474496 解压 进到里面新建这个文件夹和文件 打开my.ini文件(用文本编辑 ...

  4. mysql-5.7.14-winx64解压版配置

    1.下载最新的MySQL文件并且解压 我的位置是 F:\mysql-5.7.14-winx64 2.F:\mysql-5.7.14-winx64\bin; 添加到环境变量-系统变量-PATH下 3.复 ...

  5. Winserver2012下mysql 5.7解压版(zip)配置安装

    一.安装 下载mysqlzip版本mysql不需要运行可执行文件,解压即可,下载zip版本mysqlmsi版本mysql双击文件即可安装,相对简单,本文不介绍此版本安装 配置环境变量打开环境变量配置页 ...

  6. MySQL解压版配置步骤

    mysql-5.7.14-winx64\bin配置到Path中 在解压路径下复制my-default.ini,修改名称为my.ini 在my.ini添加如下 [mysqld] basedir=C:\\ ...

  7. MySQL 5.7 解压版安装配置

    测试环境 系统:Windows 10专业版 版本:MySQL Server 5.7.14   提纲 修改配置文件 初始化 安装服务.启动服务 修改root密码   步骤 1.解压安装包 在MySQL官 ...

  8. Mysql解压版配置环境等

    背景故事:安装版的mysql和我的本本有仇,最后一步老卡死 1.首先先把下载好的压缩包解压,如下图:

  9. MySQL解压版配置步骤详细教程

    解压mysql到D盘根目录 在解压路径下复制my-default.ini,修改名称为my.ini 在my.ini内容如下 [client]default-character-set=utf8 [mys ...

随机推荐

  1. SpringMVC 国际化

    SpringMVC学习系列(8) 之 国际化 在系列(7)中我们讲了数据的格式化显示,Spring在做格式化展示的时候已经做了国际化处理,那么如何将我们网站的其它内容(如菜单.标题等)做国际化处理呢? ...

  2. Hibernate的三种缓存

    一级缓存 hibernate的一级缓存是跟session绑定的,那么一级缓存的生命周期与session的生命周期一致,因此,一级缓存也叫session级缓存或者事务级缓存. 支持一级缓存的方法有: q ...

  3. C#.Net获取Mac等PC信息

    using System.Management; using System.Net; public class PCInfoHelper { /// <summary> /// 操作系统的 ...

  4. 关于grub的那些事(二)

    上回说到/etc/default/grub文件,我直接抄了人家的文章,感觉那Wiki确实写的很详细,所以就用上拿来主义了. 这次是分析该文件,因为这是grub必读的文件,也记录着控制grub工作的环境 ...

  5. Linux环境进程间通信(四):信号灯

    linux下进程间通信的几种主要手段: 管道(Pipe)及有名管道(named pipe):管道可用于具有亲缘关系进程间的通信,有名管道克服了管道没有名字的限制,因此,除具有管道所具有的功能外,它还允 ...

  6. 迟到的 WPF 学习 —— 依赖项属性

    本章学习依赖项属性,英文原文 Dependency Property,它是传统 .Net Framework 属性的扩展,是 WPF 的专属,但所幸使用起来和传统属性几乎一样.WPF 元素所提供的大多 ...

  7. ajaxFileUpload+struts2实现多文件上传(动态添加文件上传框)

    上篇文章http://blog.csdn.net/itmyhome1990/article/details/36396291介绍了ajaxfileupload实现多文件上传, 但只是固定的文件个数,如 ...

  8. ASP.NET页面之间传递值的几种方式(转载)

    页面传值是学习asp.net初期都会面临的一个问题,总的来说有页面传值.存储对象传值.ajax.类.model.表单等.但是一般来说,常用的较简单有QueryString,Session,Cookie ...

  9. Oracal的Lpad函数

    lpad函数是Oracle数据库函数,lpad函数从左边对字符串使用指定的字符进行填充.从其字面意思也可以理解,l是left的简写,pad是填充的意思,所以lpad就是从左边填充的意思. 语法格式如下 ...

  10. java的抽象类和抽象方法(注意查看如何调用抽象类中的非抽象方法)

    抽象类就是不能使用new方法进行实例化的类,即没有具体实例对象的类.抽象类有点类似“模板”的作用,目的是根据其格式来创建和修改新的类.对象不能由抽象类直接创建,只可以通过抽象类派生出新的子类,再由其子 ...