windows 7版本的:
1.官網(wǎng)下載安裝系統(tǒng)版本的mysql壓縮版本的
2.解壓
3.mysqld --initialize-insecure??
或者
mysqld --initialize-insecure? ? --user=mysql
4.net start mysql
5.mysql -uroot -p
密碼無
6.配置環(huán)境變量? Path添加上路徑
7.關(guān)閉cmd重啟一下就可以啦,輸入mysql -uroot -p
windows 下的 Git bash使用和cmd一樣
git而與cmd相比,git bash文字高亮,顯得更加清晰,在git bash下運(yùn)行mysql也非常簡單,輸入如下命令即可:
$net start mysql? ?# 啟動(dòng)
$ winpty mysql -u root? # 登錄連接數(shù)據(jù)庫
https://www.cnblogs.com/reyinever/p/8551977.html
https://www.cnblogs.com/lmh2072005/p/5656392.html--環(huán)境變量有說明
關(guān)于my.ini文件的配置 可有可無 自己沒找到就沒設(shè)置
mysqld install