问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

mysql win7 64位 安装

发布网友 发布时间:2022-04-27 13:15

我来回答

3个回答

热心网友 时间:2022-04-07 19:09

  1、 MySQL Community Server 5.6.10

  官方网站下载mysql-5.6.10-winx64.zip

  2、解压到d:\MySQL.(路径自己指定)

  3、在d:\MySQL下新建my.ini配置文件,内容如下:

  

  *****************配置文件开始*********************

  

  # MySQL Server Instance Configuration File

  #----------------------------------------------------------------------

  # Generated by the MySQL Server Instance ConfigurationWizard

  #

  #

  # Installation Instructions

  #----------------------------------------------------------------------

  #

  #

  # CLIENT SECTION

  #----------------------------------------------------------------------

  #

  # The following options will be read by MySQL clientapplications.

  # Note that only client applications shipped by MySQLare guaranteed

  # to read this section. If you want your own MySQLclient program to

  # honor these values, you need to specify it as anoption ring the

  # MySQL client library initialization.

  #

  [client]

  

  port=3306

  

  [mysql]

  

  default-character-set=gbk

  

  # SERVER SECTION

  #----------------------------------------------------------------------

  #

  # The following options will be read by the MySQL Server.Make sure that

  # you have installed the server correctly (see above)so it reads this

  # file.

  #

  [mysqld]

  

  # The TCP/IP Port the MySQL Server will listen on

  port=3306

  

  

  #Path to installation directory. All paths are usuallyresolved relative to this.

  basedir="d:\MySQL\"

  #Path to the database root

  datadir="d:\MySQL\Data"

  [WinMySQLadmin]

  Server="d:\MySQL\bin\mysqld.exe"

  

  # The default character set that will be used when anew schema or table is

  # created and no character set is defined

  default-character-set=gbk

  

  # The default storage engine that will be used whencreate new tables when

  default-storage-engine=INNODB

  

  # Set the SQL mode to strict

  sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

  

  # The maximum amount of concurrent sessions the MySQLserver will

  # allow. One of these connections will be reserved fora user with

  # SUPER privileges to allow the administrator to logineven if the

  # connection limit has been reached.

  max_connections=100

  

  # Query cache is used to cache SELECT results andlater return them

  # without actual executing the same query once again.Having the query

  # cache enabled may result in significant speedimprovements, if your

  # have a lot of identical queries and rarely changingtables. See the

  # "Qcache_lowmem_prunes" status variable tocheck if the current value

  # is high enough for your load.

  # Note: In case your tables change very often or ifyour queries are

  # textually different every time, the query cache mayresult in a

  # slowdown instead of a performance improvement.

  query_cache_size=0

  

  # The number of open tables for all threads.Increasing this value

  # increases the number of file descriptors that mysqldrequires.

  # Therefore you have to make sure to set the amount ofopen files

  # allowed to at least 4096 in the variable"open-files-limit" in

  # section [mysqld_safe]

  table_cache=256

  

  # Maximum size for internal (in-memory) temporarytables. If a table

  # grows larger than this value, it is automaticallyconverted to disk

  # based table This limitation is for a single table.There can be many

  # of them.

  tmp_table_size=26M

  

  

  # How many threads we should keep in a cache forreuse. When a client

  # disconnects, the client's threads are put in thecache if there aren't

  # more than thread_cache_size threads frombefore. This greatly reces

  # the amount of thread creations needed if you have alot of new

  # connections. (Normally this doesn't give a notableperformance

  # improvement if you have a good threadimplementation.)

  thread_cache_size=8

  

  #*** MyISAM Specific options

  

  # The maximum size of the temporary file MySQL isallowed to use while

  # recreating the index (ring REPAIR, ALTER TABLE orLOAD DATA INFILE.

  # If the file-size would be bigger than this, theindex will be created

  # through the key cache (which is slower).

  myisam_max_sort_file_size=100G

  

  # If the temporary file used for fast index creationwould be bigger

  # than using the key cache by the amount specifiedhere, then prefer the

  # key cache method. This is mainly used to force long character keys in

  # large tables to use the slower key cache method tocreate the index.

  myisam_sort_buffer_size=52M

  

  # Size of the Key Buffer, used to cache index blocksfor MyISAM tables.

  # Do not set it larger than 30% of your available memory,as some memory

  # is also required by the OS to cache rows. Even ifyou're not using

  # MyISAM tables, you should still set it to 8-64M asit will also be

  # used for internal temporary disk tables.

  key_buffer_size=40M

  

  # Size of the buffer used for doing full table scansof MyISAM tables.

  # Allocated per thread, if a full scan is needed.

  read_buffer_size=64K

  read_rnd_buffer_size=256K

  

  # This buffer is allocated when MySQL needs to rebuildthe index in

  # REPAIR, OPTIMZE, ALTER table statements as well asin LOAD DATA INFILE

  # into an empty table. It is allocated per thread sobe careful with

  # large settings.

  sort_buffer_size=256K

  

  

  #*** INNODB Specific options ***

  innodb_data_home_dir="d:\MySQL\Data\INNODB\"

  

  # Use this option if you have a MySQL server withInnoDB support enabled

  # but you do not plan to use it. This will save memoryand disk space

  # and speed up some things.

  #skip-innodb

  

  # Additional memory pool that is used by InnoDB tostore metadata

  # information. If InnoDB requires more memory for this purpose it will

  # start to allocate it from the OS. As this is fast enough on most

  # recent operating systems, you normally do not needto change this

  # value. SHOW INNODB STATUS will display the currentamount used.

  innodb_additional_mem_pool_size=2M

  

  # If set to 1, InnoDB will flush (fsync) thetransaction logs to the

  # disk at each commit, which offers full ACIDbehavior. If you are

  # willing to compromise this safety, and you arerunning small

  # transactions, you may set this to 0 or 2 to rece diskI/O to the

  # logs. Value 0 means that the log is only written tothe log file and

  # the log file flushed to disk approximately once persecond. Value 2

  # means the log is written to the log file at eachcommit, but the log

  # file is only flushed to disk approximately once persecond.

  innodb_flush_log_at_trx_commit=1

  

  # The size of the buffer InnoDB uses for buffering logdata. As soon as

  # it is full, InnoDB will have to flush it to disk. Asit is flushed

  # once per second anyway, it does not make sense tohave it very large

  # (even with long transactions).

  innodb_log_buffer_size=1M

  

  # InnoDB, unlike MyISAM, uses a buffer pool to cacheboth indexes and

  # row data. The bigger you set this the less disk I/Ois needed to

  # access data in tables. On a dedicated databaseserver you may set this

  # parameter up to 80% of the machine physical memorysize. Do not set it

  # too large, though, because competition of thephysical memory may

  # cause paging in the operating system. Note that on 32bit systems you

  # might be limited to 2-3.5G of user level memory perprocess, so do not

  # set it too high.

  innodb_buffer_pool_size=77M

  

  # Size of each log file in a log group. You should setthe combined size

  # of log files to about 25%-100% of your buffer poolsize to avoid

  # unneeded buffer pool flush activity on log fileoverwrite. However,

  # note that a larger logfile size will increase thetime needed for the

  # recovery process.

  innodb_log_file_size=39M

  

  # Number of threads allowed inside the InnoDB kernel.The optimal value

  # depends highly on the application, hardware as wellas the OS

  # scheler properties. A too high value may lead tothread thrashing.

  innodb_thread_concurrency=8

  

  

  *****************配置文件结束*********************

  

  配置文件也放在了附件里,大家可以根据需要修改。

  

  重点是以下配置,其中datadir的目录名称必须是data,并且好像必须是MySQL目录下的data.之前自己制定了其他目录,一直出现1067的错误。

  

  #Path to installation directory. All paths are usuallyresolved relative to this.

  basedir="d:\MySQL\"

  

  #Path to the database root

  datadir="d:\MySQL\Data"

  

  4、在windows环境变量里加入以下内容(方便执行命令行命令)

  新建MYSQL_HOME="d:\MySQL\"

  在Path里加入%MYSQL_HOME%\bin

  5、将mysql注册为windows系统服务。具体操作是在命令行中执行以下命令:

  mysqld install MySQL --defaults-file="d:\MySQL\my.ini"

  移除服务为 mysqld remove

  

  6、第5步成功后,在命令行启动mysql

  c:>net start mysql

热心网友 时间:2022-04-07 20:27

比如你的mysql在d:\mysql\bin
1、点我的电脑,右键,属性,高级系统设置,环境变量,将PATH增加;d:\mysql\bin才行
2、进入当前路径
d:
cd mysql\bin
mysql -u root -p

热心网友 时间:2022-04-07 22:01

付费内容限时免费查看回答稍等

你好,mysql安装教程win7:

1/17分步阅读

下载mysql-5.5.33-winx64.msi回来并且双击安装进入欢迎界面

2/17

选择接受,next

3/17

Typical(经典型),Complete(完全安装),Custom(自定义),这里我选择Custom安装

4/17

选择安装路径

5/17

进行安装

6/17

至此安装已经完成了,接下来要对mysql进行配置

7/17

选择配置方式。Detailed Configuration(手动配置),Standard Configuration(标准配置)。这里我选择了手动方式,也可以标准方式。个人决定。next

8/17

Developer Machine:开发测试,mysql 占用很少资源

Server Machine:服务器类型,mysql占用较多资源

8/17

Developer Machine:开发测试,mysql 占用很少资源

Server Machine:服务器类型,mysql占用较多资源

Dedicated MySQL Server Machine:专门的数据库服务器,mysql占用所有可用资源

这个根据个人需求而选择。我选择第一项-next

9/17

Multifunctional Database:通用多功能型

Transactional Database Only:服务器类型,专注于事务处理

Non-Transactional Database Only:非事务处理型,较简单,主要做一些监控、记数用,对MyISAM数据类型的支持仅 限于non-transactional

这里选择Multifunctional Database就ok了,next

10/17

这里是对InnoDB Tablespace

10/17

这里是对InnoDB Tablespace进行配置,就是为InnoDB 数据库文件选择一个存储空间.点next

11/17

在自己机器上做开发测试用,选"Manual Setting”,大约10—15连接数就可以了

12/17

都勾选上,next

13/17

择数据库编码,就是对MySQL默认数据库编码进行设置。第一个是外文编码,第二个是多字节的通用utf8编码,第三个自定义编码中,这里就选择utf-8(国际编码),通用性比较好

14/17

可以全都勾选,Service Name不变,然后”Next“

15/17

输入你想要设置的密码,next

16/17

确认无误后,点Execute,而后出现如下界面表示已配置完成。finish

17/17

最后cmd打开运行窗口,输入mysql -uroot -p,出现提示:说明已经成功安装并配置了

提问

回答10/17

这里是对InnoDB Tablespace进行配置,就是为InnoDB 数据库文件选择一个存储空间.点next

11/17

在自己机器上做开发测试用,选"Manual Setting”,大约10—15连接数就可以了

12/17

都勾选上,next

13/17

择数据库编码,就是对MySQL默认数据库编码进行设置。第一个是外文编码,第二个是多字节的通用utf8编码,第三个自定义编码中,这里就选择utf-8(国际编码),通用性比较好

14/17

可以全都勾选,Service Name不变,然后”Next“

15/17

输入你想要设置的密码,next

16/17

确认无误后,点Execute,而后出现如下界面表示已配置完成。finish

17/17

最后cmd打开运行窗口,输入mysql -uroot -p,出现提示:说明已经成功安装并配置了

提问

这里为什么没有对勾

回答你要自己选

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
柏林地铁路线 高三敬业话题作文800字 怀孕可以吃羊肉米粉吗 坐月子能不能吃羊肉粉 坐月子吃羊肉的好处 卜蜂蛋鸡预混料配方 怀孕多久后才能吃羊肉粉 一个人不花钱完美世界国际版玩什么职业最好?多谢了 女孩也会花心吗? 女生也会花心么? 三孔附近有什么好玩的地方 如何在64位WIN7下安装64位的解压版MySQLmysql-5.6.14-CSDN论坛 win764位系统怎么安装mysql mysql64位系统能装32位的mysql吗 mysql不支持64位win? 心脏早搏吃冠心苏合丸好用吗 胸闷气短呼吸特别困难吃冠心苏和丸可以吗 服用冠心苏合丸致肾衰可以索赔吗拜托各位了 3Q 血脂正常,心跳快.冠心苏合丸能随便吃吗 苏合香的副作用 据说老君炉冠心苏合丸的方子是古方,效果是不是更有保障 麝香保心丸和冠心苏合丸治疗冠心病哪种效果更好?有什么不一样? 冠心苏合丸的介绍 冠心苏合丸的注意事项 喝酒后又喝了冠心苏合丸有什么不良反映吗 服用"冠心苏合丸"有禁忌吗? 冠心苏合丸的成分 老君炉冠心苏合丸的主要功效是什么,一天吃几回 治疗冠心病,大家都推荐冠心苏合丸,效果到底怎么样? 请问长期服用冠心苏合丸对人体有害吗 冠心苏合丸的说明书是什么 怎么配置mysql 64位数据库服务器 驱魔猎人版征途mysql在64位机上运行不了 navicat for mysql 64位和32位区别,win7 64位下用32位和64位有区别吗... mysql5.2 64位下载 如何查看mysql是64位还是32位? 《易经》解读:宇宙代表什么 易经如何解释宇宙是什么,和宇宙的起源? 为什么易经上说宇宙间所有事物的变只有六个阶段 突然发现原来《易经》才是万经之首,它早已把宇宙的*说出来了,只是因为过于简化,所以很少人能够参透 《易经》到底是预测未来的宇宙奥秘?还是封建迷信? 《周易》中隐藏了宇宙运转的奥秘,为什么科学家会这么说? 周易是如何解释宇宙的 为什么易经说宇宙间任何事物发展不会超过六个阶段? 易经 是不是宇宙的奥秘? 《易经》是解开宇宙人生密码的宝典(易经人门汇编) 易经在现代社会中有什么价值? 易经是解释宇宙奥秘的一门科学,伏羲如何画的八卦图?历史上有木有记载? 《易经》图绎宇宙原始虚空开阖模型的前言摘录 易经讲什么的,对生活有什么实际作用。他们讲的好像有道理,好像是巧合,谁懂易经的说说,易经是讲宇宙的 易经全文txt文件