日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

MySQL5.7绿色版安装

發(fā)布時間:2024/1/17 数据库 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 MySQL5.7绿色版安装 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1. 下載MySQL 5.7,地址:http://dev.mysql.com/downloads/mysql/ (選擇32位或者64位版本需根據(jù)自身PC情況)

2. 下載后解壓,比如我的目錄結(jié)構(gòu)是:

3. 配置Path路徑:系統(tǒng)屬性 => 高級 => 高級 => 系統(tǒng)變量 => path后添加 F:\CSoft\MySQL-5.7\bin

4. 修改my-default.ini,此文件是初始化信息:

# 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 = F:\CSoft\MySQL-5.7 datadir = F:\CSoft\MySQL-5.7\data port = 3306 # 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 # !o>UZ!e(h6(m 初始化的密碼

5. 系統(tǒng)管理員模式運行cmd 輸入如下命令

C:\Users\LCF>F: //切換到F目錄 F:\>cd CSoft\MySQL-5.7\bin //進入bin目錄 F:\CSoft\MySQL-5.7\bin>mysqld --install //安裝MYSQL服務(wù) Service successfully installed. //提示服務(wù)安裝成功 The current server installed: F:\CSoft\MySQL-5.7\bin\mysqld MySQLF:\CSoft\MySQL-5.7\bin>mysqld --initialize --console //根據(jù)配置文件初始化,此時會有一大堆消息, (注意最后的消息: 2016-07-13T14:21:39.268917Z 1 [Note] A temporary password is generated for root@ localhost: !o>UZ!e(h6(m ) 后面這個是密碼待會兒登錄使用的。F:\CSoft\MySQL-5.7\bin>net start mysql //啟動mysql服務(wù) MySQL 服務(wù)正在啟動 . MySQL 服務(wù)已經(jīng)啟動成功。F:\CSoft\MySQL-5.7\bin>mysql -uroot -p //登錄mysql Enter password: ************ //密碼就是輸入的密碼 mysql> set password=password('123456'); //修改密碼 Query OK, 0 rows affected, 1 warning (0.00 sec)

目前為止成功安裝。

轉(zhuǎn)載于:https://www.cnblogs.com/LiuChunfu/p/5668435.html

總結(jié)

以上是生活随笔為你收集整理的MySQL5.7绿色版安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。