==MySQL mysql-5.7.14-win32 压缩包(免安装版) 配置步骤==
1. 自MySQL官网上下载zip版文件。文件名称为:mysql-5.7.14-win32.zip
2. 解压缩zip文件,测试路径为 D:\Coding\mysql-5.7.14-win32
3. 将解压缩路径下的bin路径添加到环境变量中:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PATH = D:\Coding\mysql-5.7.14-win32\bin;;D:\Coding\Oracle\instantclient_12_1\bin;%JAVA_HOME%\bin;%ORACLE_HOME%;C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;D:\Program Files\Git\cmd;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Sybase\DLL;C:\Sybase\BIN;C:\Program Files\Sybase\Sybase Central\win32;C:\Sybase\ASEP
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4. 运行命令提示符(cmd.exe, Windows 7 以管理员身份运行,以便执行时获取相应的权限)
5. 将命令提示符的路径更改到 D:\Coding\mysql-5.7.14-win32\bin 目录下
6. 执行命令 mysqld --initialize ,进行初始化操作,在 D:\Coding\mysql-5.7.14-win32 下会自动生成生成 data文件夹,和 root 用户的临时登录密码( 该指令为 5.7 版本后新增的,目的是增强MySQL的安全性),位于 LingeringNight.err (LingeringNight 为当前计算机名称)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2016-08-29T02:09:38.094246Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2016-08-29T02:09:38.094246Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2016-08-29T02:09:38.094246Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set. 2016-08-29T02:09:39.685449Z 0 [Warning] InnoDB: New log files created, LSN=45790 2016-08-29T02:09:40.091050Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. 2016-08-29T02:09:40.293850Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: a4bbd45e-6d8d-11e6-95ab-4437e64201fa. 2016-08-29T02:09:40.340650Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. ---------------------------------------------------A temporary password--------------------------------------------------------------------------- 2016-08-29T02:09:40.340650Z 1 [Note] A temporary password is generated for root@localhost: saajELGy!0oZ ---------------------------------------------------A temporary password--------------------------------------------------------------------------- 2016-08-29T02:10:37.169950Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2016-08-29T02:10:37.169950Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2016-08-29T02:10:37.169950Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set. 2016-08-29T02:10:37.169950Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path. 2016-08-29T02:10:37.185550Z 0 [Note] D:\Coding\mysql-5.7.14-win32\bin\mysqld (mysqld 5.7.14) starting as process 2988 ... 2016-08-29T02:10:37.216750Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2016-08-29T02:10:37.216750Z 0 [Note] InnoDB: Uses event mutexes 2016-08-29T02:10:37.216750Z 0 [Note] InnoDB: Memory barrier is not used 2016-08-29T02:10:37.216750Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 2016-08-29T02:10:37.216750Z 0 [Note] InnoDB: Number of pools: 1 2016-08-29T02:10:37.216750Z 0 [Note] InnoDB: Not using CPU crc32 instructions 2016-08-29T02:10:37.232350Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2016-08-29T02:10:37.247950Z 0 [Note] InnoDB: Completed initialization of buffer pool 2016-08-29T02:10:37.325950Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 2016-08-29T02:10:37.559951Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2016-08-29T02:10:37.575551Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2016-08-29T02:10:37.715951Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB. 2016-08-29T02:10:37.715951Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2016-08-29T02:10:37.715951Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2016-08-29T02:10:37.715951Z 0 [Note] InnoDB: Waiting for purge to start 2016-08-29T02:10:37.778351Z 0 [Note] InnoDB: 5.7.14 started; log sequence number 2525799 2016-08-29T02:10:37.778351Z 0 [Note] Plugin 'FEDERATED' is disabled. 2016-08-29T02:10:37.793951Z 0 [Note] InnoDB: Loading buffer pool(s) from D:\Coding\mysql-5.7.14-win32\data\ib_buffer_pool 2016-08-29T02:10:37.871951Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key 2016-08-29T02:10:37.871951Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 2016-08-29T02:10:37.871951Z 0 [Note] IPv6 is available. 2016-08-29T02:10:37.871951Z 0 [Note] - '::' resolves to '::'; 2016-08-29T02:10:37.871951Z 0 [Note] Server socket created on IP: '::'. 2016-08-29T02:10:38.137152Z 0 [Note] Event Scheduler: Loaded 0 events 2016-08-29T02:10:38.137152Z 0 [Note] D:\Coding\mysql-5.7.14-win32\bin\mysqld: ready for connections. Version: '5.7.14' socket: '' port: 3306 MySQL Community Server (GPL) 2016-08-29T02:10:38.495953Z 0 [Note] InnoDB: Buffer pool(s) load completed at 160829 10:10:38 2016-08-29T02:13:33.395060Z 2 [Note] Aborted connection 2 to db: 'mysql' user: 'root' host: 'localhost' (Got an error reading communication packets)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7. 复制 my-default.ini ,并更改名称为my.ini, 添加basedir 和datadir,以及 编码格式:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/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 = D:\Coding\mysql-5.7.14-win32 # datadir = D:\Coding\mysql-5.7.14-win32\data # port = ..... # server_id = ..... # 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 # server encoding character-set-server = utf8 [client] default-character-set = utf8
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8. 执行命令 mysqld --install MySQL --defaults-file="D:\Coding\mysql-5.7.14-win32\my.ini",将MySQL 添加到服务中,
9.执行 net start MySQL ,启动MySQL服务
至此,MySQL 配置成功
==修改管理员用户root 临时密码==
2.1 以管理员身份运行cmd.exe ,并 执行 mysql -u root -p
2.2 输入临时密码
2.3 登录成功后,输入 mysql> set password for root@localhost = password('new password') 更改临时密码。
mysql> set password for root@localhost = password('new password')
== END ==
相关推荐
解压“mysql-5.7.14”后,用户需要遵循特定的步骤编译和安装MySQL,包括配置选项设置、依赖库的安装、编译和安装MySQL二进制文件,以及初始化数据库和配置系统变量。 在实际使用中,了解这些知识点有助于管理员充分...
MySQL是世界上最受欢迎的开源关系型数据库管理系统之一,其5.7.14版本是一个重要的里程碑,带来了许多性能改进和新特性。在CentOS操作系统环境下,离线安装MySQL 5.7.14是一项常见的任务,尤其对于那些没有互联网...
- **下载源码**:首先从官方网站获取`mysql-5.7.14.tar.gz`压缩包,并解压。 - **配置依赖**:确保系统中安装了必要的编译工具和依赖库,如gcc、cmake、openssl、ncurses等。 - **配置MySQL**:运行`./configure`...
`mysql-installer-community-5.7.14.0.msi.zip` 是MySQL在Windows操作系统上的安装程序的压缩包,它提供了一个简便的图形用户界面来帮助用户安装和配置MySQL服务器。 1. **MySQL社区版**: 这个安装包属于MySQL社区...
下载完成后,由于MySQL 5.7.14是免安装版,你可以将下载的压缩包解压到你想要的安装目录。例如,你可能会选择“D:\mysql-5.7.14-winx64”。接着,你需要创建一个名为`my.ini`的配置文件,并在其中设定MySQL的基本...
- **下载并安装MySQL 5.7.14免安装版**:从指定链接下载MySQL 5.7.14的免安装版压缩包,解压至所需目录。例如,本例中解压到了`E:\Soft\Java\mysql-5.7.14-winx64`。 - **添加环境变量**:将解压后的`BIN`文件夹路径...
通过以上步骤,可以成功地在Windows系统上安装并配置MySQL的`.zip`版本。这种方式相比于传统的`.exe`安装包更为灵活,适用于更多的应用场景。需要注意的是,在配置过程中确保各项参数正确无误,以避免后续使用中可能...
在安装和配置MySQL 5.7.14时,以下是一些详细步骤和知识点: 1. 下载安装包 在安装MySQL 5.7.14之前,首先需要从其官方网站下载相应版本的安装包。下载时,需要使用Oracle账号登陆,以获取合适的安装包。下载页面...
下面主要分为五大步给大家介绍mySql 5.7.14 解压版安装教程。感兴趣的朋友一起看看吧。 第一步:下载最近的MySQL文件并且解压: 下载最新版的MySQL–mysql-5.7.12下载地址 将下载到的文件解压缩到自己喜欢的位置,...
在本篇文章中,我们将详细介绍如何安装MySQL 5.7.14版本的解压版,通过图文形式提供步骤解析,帮助读者顺利完成MySQL数据库的安装和配置。 首先,需要了解MySQL有两种安装方式:一种是MSI安装包,这种安装方式类似...
MySQL解压版配置步骤详细教程 MySQL是一种流行的关系型数据库管理系统,广泛用于各类应用程序中。MySQL解压版是一种非安装型的版本,相较于常规的安装包安装方式,解压版更适合需要快速搭建数据库环境或进行多次...
本文详细介绍了在Windows 10操作系统下安装和配置MySQL 5.7.14解压版(winx64)的方法,适用于希望尝试MySQL解压版安装方式的用户。解压版MySQL与传统的安装版相比,启动时需要启动的服务较少,适合需要轻量级部署的...
这个压缩包提供的“wampserver3.0.6_x64_apache2.4.23_mysql5.7.14_php5.6.25-7.0.10.exe”安装程序很可能包含了将Redis集成到WAMP环境中的步骤和配置文件。这意味着用户可以轻松地在WAMP环境中启用Redis服务,为PHP...
3. **MySQL V5.7.14**:MySQL是一个开源的关系型数据库管理系统,以其高效、稳定和易于管理著称。MySQL 5.7.14版本引入了InnoDB存储引擎的性能优化、新的SQL功能以及更严格的安全性改进,为开发者提供了一个可靠的...