最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

mysql5.7.13.zip安裝教程(windows)

 更新時(shí)間:2016年06月22日 08:50:43   作者:Pinnsvin  
這篇文章主要為大家詳細(xì)介紹了mysql5.7.13.zip安裝教程,以及在安裝mysql5.7.13.zip過(guò)程中遇到的問(wèn)題,感興趣的小伙伴們可以參考一下

這是我之前進(jìn)行MySQL免安裝版下載與配置的詳細(xì)過(guò)程,先分享給大家。

1. 下載Mysql
官方:http://www.mysql.com→downloads→選社區(qū)版本MySQL Community Edition(GPL)→點(diǎn)擊Community(GPL)Downloads>>→MySQL Community Server(GPL)→選擇自己要下載的版本(我是64位系統(tǒng)選擇的是Windows (x86, 64-bit), ZIP Archive)→Downloads→No thanks, just start my download.

2.配置環(huán)境變量

先將下載好的文件解壓到你要安裝的位置,我解壓到了D:\servers\mysql
方案1:新建環(huán)境變量,變量名稱:MYSQL(一般大寫(xiě)、也可小寫(xiě)),變量值:D:\servers\mysql,向path中添加%MYSQL%/bin
方案2:直接向path中添加D:\servers\mysql\bin

3.安裝MySQL服務(wù)

命令行進(jìn)入mysql的bin目錄下
 (注:進(jìn)入D盤(pán)直接輸入“D:“,使用“cd 文件夾名”進(jìn)入某個(gè)文件夾 ,“cd..“返回上一目錄)
輸入service install或者mysqld install 提示安裝成功
輸入net start mysql 啟動(dòng)mysql服務(wù)
使用mysql –u root –p (此命令是root登入,為簡(jiǎn)寫(xiě),詳細(xì)格式自行查找),root默認(rèn)密碼為空,直接回車即可

4.mysql.ini

原文件為mysql-defult.ini
修改其中的basedir=D:/servers/mysql
                datadir=D:/servers/mysql/data
注意:路徑之間為“/“,如果直接復(fù)制過(guò)來(lái)沒(méi)有改會(huì)出現(xiàn)”系統(tǒng)錯(cuò)誤1067“
系統(tǒng)錯(cuò)誤5  使用管理員權(quán)限打開(kāi)命令提示符

5.連接mysql

命令提示符下輸入:mysql -uroot -p
root默認(rèn)密碼為空,直接回車即可進(jìn)入

按照我之前安裝5.6的安裝方法(MySQL免安裝版下載與配置)安裝5.7的時(shí)候出現(xiàn)問(wèn)題:
mysql服務(wù)無(wú)法啟動(dòng),服務(wù)沒(méi)有報(bào)任何錯(cuò)誤

其實(shí)在這學(xué)期開(kāi)始學(xué)習(xí)mysql的時(shí)候,就聽(tīng)老師同學(xué)說(shuō),登錄不了的問(wèn)題,當(dāng)時(shí)沒(méi)有在意,也是因?yàn)殡娔X上早就安裝了mysql5.6,也就沒(méi)有在意這個(gè)問(wèn)題。這兩天win10系統(tǒng)出問(wèn)題,重裝了win7,安裝5.7的時(shí)候出現(xiàn)了這個(gè)問(wèn)題。 

之前的版本默認(rèn)密碼為空,具體版本不太清楚,反正5.6密碼是空。5.7的安全性提升,在linux安裝5.7的時(shí)候,安裝完成后會(huì)生成一個(gè)隨機(jī)性密碼,存儲(chǔ)在root/.mysql_secret中,如果沒(méi)有這個(gè)文件,去系統(tǒng)日志中查找password,就應(yīng)該能找到。 

但是windows下就不知道如何解決了,不過(guò)最后還是找到了解決方法。 

解決方法:
來(lái)自:windows MySql 5.7.9,啟動(dòng)不了。缺少data
然而并不是缺少data文件夾,將my-default.ini文件改名為my.ini,移動(dòng)到bin/目錄下,在bin/下執(zhí)行命令 mysqld --initialize --user=mysql --console ,這條命令估計(jì)是初始化的命令
 然后啟動(dòng)服務(wù) net start mysql 
 命令行顯示貼在這 

Microsoft Windows [版本 6.1.7601]
版權(quán)所有 (c) 2009 Microsoft Corporation。保留所有權(quán)利。

C:\Windows\system32>cd ..

C:\Windows>cd ..

C:\>cd mysql-5.7.13-winx64/Boot
系統(tǒng)找不到指定的路徑。

C:\>cd mysql-5.7.13-winx64\bin

C:\mysql-5.7.13-winx64\bin>mysqld install
Service successfully installed.

C:\mysql-5.7.13-winx64\bin>net start mysql
MySQL 服務(wù)正在啟動(dòng) .
MySQL 服務(wù)無(wú)法啟動(dòng)。

服務(wù)沒(méi)有報(bào)告任何錯(cuò)誤。

請(qǐng)鍵入 NET HELPMSG 3534 以獲得更多的幫助。


C:\mysql-5.7.13-winx64\bin>net start mysql
MySQL 服務(wù)正在啟動(dòng) .
MySQL 服務(wù)無(wú)法啟動(dòng)。

服務(wù)沒(méi)有報(bào)告任何錯(cuò)誤。

請(qǐng)鍵入 NET HELPMSG 3534 以獲得更多的幫助。


C:\mysql-5.7.13-winx64\bin>mysqld --initialize --user=mysql --console
2016-06-21T14:07:20.922112Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is
 deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
2016-06-21T14:07:22.669315Z 0 [Warning] InnoDB: New log files created, LSN=45790

2016-06-21T14:07:23.106116Z 0 [Warning] InnoDB: Creating foreign key constraint
system tables.
2016-06-21T14:07:23.308916Z 0 [Warning] No existing UUID has been found, so we a
ssume that this is the first time that this server has been started. Generating
a new UUID: 79c8386d-37b9-11e6-9709-74867a6179b7.
2016-06-21T14:07:23.340116Z 0 [Warning] Gtid table is not ready to be used. Tabl
e 'mysql.gtid_executed' cannot be opened.
2016-06-21T14:07:23.355716Z 1 [Note] A temporary password is generated for root@
localhost: rr9.8h74twfR

C:\mysql-5.7.13-winx64\bin>mysql -uroot -prr9.8h74twfR
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

C:\mysql-5.7.13-winx64\bin>net start mysql
MySQL 服務(wù)正在啟動(dòng) .
MySQL 服務(wù)已經(jīng)啟動(dòng)成功。


C:\mysql-5.7.13-winx64\bin>mysql -uroot -prr9.8h74twfR
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.13

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> set password=password('');
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> exit
Bye

C:\mysql-5.7.13-winx64\bin>mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.13 MySQL Community Server (GPL)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> exit
Bye

C:\mysql-5.7.13-winx64\bin>

精彩專題分享:mysql不同版本安裝教程 mysql5.7各版本安裝教程 mysql5.6各版本安裝教程

其它網(wǎng)友的補(bǔ)充:

環(huán)境:windows 10某個(gè)版本(寫(xiě)本文的最新版本)

目的:安裝個(gè)mysql服務(wù)端,從官方下載的zip壓縮版5.7.16,而不是msi版本。

操作過(guò)程折騰了,以前安裝過(guò)多次,不過(guò)好像不是真正意義上的從zip安裝,而是使用之前通過(guò)msi安裝過(guò)的版本,后面只是注冊(cè)成系統(tǒng)服務(wù)一項(xiàng)。

本次折騰的的操作,主要從官方是下載.zip版本壓縮包,選擇的是x64版,解壓縮到合適的目錄里,本文以 C:\Program Files\mysql\  為例。

step 0. 準(zhǔn)備配置文件:復(fù)制my-default.ini得到my.ini ,修改其中的basedir, datadir兩個(gè)參數(shù),示例如下

basedir = C:\Program Files\mysql
datadir = D:\data\mysql-data

step 1. 安裝為windows服務(wù):管理員身份啟動(dòng)cmd,進(jìn)入mysql/bin/目錄,執(zhí)行如下安裝命令:

mysqld --install MySQL --defaults-file="C:\Program Files\mysql\my.ini"
注意:--install 參數(shù)必須在前,否則mysqld會(huì)認(rèn)為你要運(yùn)行mysqld進(jìn)程,然后啟動(dòng)失?。?/p>

setp 2. 初始化數(shù)據(jù)目錄:創(chuàng)建 D:\data\ ,注意不需要?jiǎng)?chuàng)建mysql-data子目錄;運(yùn)行 mysqld --initialize

step 3. 查root用戶初始密碼:查windows日志-應(yīng)用程序日志,里面應(yīng)該有類似如下一條

A temporary password is generated for root@localhost: 5cuiMezaNd>QFor more information....

其中5cuiMezaNd>Q即是默認(rèn)密碼,到命令行里修改一下吧,如下一行,將root密碼改為000111, 會(huì)有交互提示輸入舊密碼的。

mysqladmin.exe -uroot -p password "000111"

step 4. 啟動(dòng)windows服務(wù):net start MySQL. 完工。

Addition. 如需要卸載服務(wù),到mysql/bin/目錄里執(zhí)行 mysqld.exe --remove 即可。需要的話刪除mysql數(shù)據(jù)文件目錄。

以上就是mysql5.7.13.zip安裝配置方法,以及安裝過(guò)程中遇到的問(wèn)題解決方法,希望對(duì)大家的學(xué)習(xí)有所幫助。

相關(guān)文章

最新評(píng)論

新源县| 高邮市| 绩溪县| 东丰县| 县级市| 金秀| 出国| 丹巴县| 改则县| 三门峡市| 县级市| 延吉市| 台北市| 会理县| 阜宁县| 永川市| 偏关县| 株洲县| 科尔| 正安县| 九龙城区| 孝昌县| 甘谷县| 玉田县| 余姚市| 灵寿县| 五莲县| 名山县| 蓬安县| 东光县| 内江市| 台江县| 东阳市| 大庆市| 资溪县| 甘肃省| 张家界市| 民勤县| 温州市| 新津县| 精河县|