新聞中心
MySQL是一個(gè)開(kāi)放源碼的小型關(guān)聯(lián)式數(shù)據(jù)庫(kù)管理系統(tǒng),開(kāi)發(fā)者為瑞典MySQL AB公司。目前MySQL被廣泛地應(yīng)用在Internet上的中小型網(wǎng)站中。由于其體積小、速度快、總體擁有成本低,尤其是開(kāi)放源碼這一特點(diǎn),許多中小型網(wǎng)站為了降低網(wǎng)站總體擁有成本而選擇了MySQL作為網(wǎng)站數(shù)據(jù)庫(kù)。
創(chuàng)新互聯(lián)建站專業(yè)為企業(yè)提供鞍山網(wǎng)站建設(shè)、鞍山做網(wǎng)站、鞍山網(wǎng)站設(shè)計(jì)、鞍山網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁(yè)設(shè)計(jì)與制作、鞍山企業(yè)網(wǎng)站模板建站服務(wù),10余年鞍山做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
這篇文章重點(diǎn)給大家介紹解決mysql8.0.19 winx64版本的安裝問(wèn)題,具體內(nèi)容如下所示:
下載地址:https://dev.mysql.com/downloads/mysql/,我下載了上面的187.8M的那個(gè)。
順便說(shuō)一句,最近的新浪微博是真爛了,居然登錄不了。
之前一直在新浪寫。
以后改這里吧,突然發(fā)現(xiàn)這的風(fēng)格很喜歡。
==================================================
下載后,解壓,發(fā)現(xiàn)完全沒(méi)有安裝文件,然后百度,發(fā)現(xiàn)要先創(chuàng)建一個(gè)my.ini和data目錄,我感覺(jué)非常扯淡,安裝居然需要這樣。
然后安裝好后,執(zhí)行到“mysql -u root -p
”時(shí),網(wǎng)上的教程輸入密碼即可,但是輸入后提示錯(cuò)誤:
“ERROR 2003 (HY000): Can't connect to MySQL server on ‘localhost' (10061)”
然后繼續(xù)網(wǎng)上搜索,一堆解決方案,他們居然都解決了,但是我的無(wú)法解決。
這里插一個(gè)小錯(cuò)誤:
PS C:\WINDOWS\system32> mysql --install mysql
mysql: [ERROR] unknown option ‘–install'.
最后面有個(gè)字母d的,其實(shí)是mysqld,不是mysql??聪旅?。
===================================================
后面自己就把data刪了,把my.ini也刪了。
然后按照如下步驟一步步來(lái)。
PS C:\WINDOWS\system32> mysqld --initialize --console
2020-03-07T11:07:18.159694Z 0 [System] [MY-013169] [Server] D:\Program Files\mysql-8.0.19-winx64\bin\mysqld.exe (mysqld 8.0.19) initializing of server in progress as process 5900
2020-03-07T11:07:22.120685Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: Qy_kuyaC)1qg
PS C:\WINDOWS\system32> mysqld --install
The service already exists!
The current server installed: "D:\Program Files\mysql-8.0.19-winx64\bin\mysqld.exe" mysql
PS C:\WINDOWS\system32> net start mysqlmysql 服務(wù)正在啟動(dòng) .
mysql 服務(wù)已經(jīng)啟動(dòng)成功。
PS C:\WINDOWS\system32> mysql -uroot -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.19
Copyright (c) 2000, 2020, 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> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'xxxxxx';
Query OK, 0 rows affected (0.01 sec)
后面就是數(shù)據(jù)庫(kù)的操作了。
進(jìn)入mysql目錄,發(fā)現(xiàn)data文件夾自動(dòng)生成了。
總結(jié)
到此這篇關(guān)于解決mysql8.0.19 winx64版本的安裝問(wèn)題的文章就介紹到這了,更多相關(guān)mysql8.0.19 winx64 數(shù)據(jù)庫(kù)安裝內(nèi)容請(qǐng)搜索創(chuàng)新互聯(lián)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持創(chuàng)新互聯(lián)!
分享名稱:解決mysql8.0.19 winx64版本的安裝問(wèn)題
網(wǎng)頁(yè)網(wǎng)址:http://fisionsoft.com.cn/article/ihssdo.html