MySQL安裝遇到的問題

2022-09-01 18:18:13 字數 850 閱讀 5649

1、mysql服務啟動出現錯誤。

mysql 'localhost' (10061)

我這裡遇到的問題是如下解決的:

my.ini檔案裡

#path to installation directory. all paths are usually resolved relative to this.

basedir="d:/tools/mysql5.5/"

#path to the database root

datadir="d:/tools/mysql5.5/data/"

datadir需在basedir目錄的下一層,如上所示。

此時,mysql服務可以啟動啟動起來了。

接下來又遇到乙個問題: access denied for user 'root'@'localhost'(using password:yes) error 1045(28000)

需要重新設定root使用者的登入密碼,步驟如下:

1、首先在my.ini檔案的最末尾加上 "skip-grant-tables"

2、重啟mysql服務

3、此時可以通過mysql -u root -p登入到mysql伺服器

4、修改密碼,步驟如下:

a.輸入如下語句:

use

mysql;

update

user

set password = password('

新密碼') where

user='

root

';

b. 刪除或注釋掉my.ini的 "skip-grant-tables"

c. 重啟mysql服務

安裝mysql遇到的問題

mysql安裝出現的錯誤 使用的是壓縮版 1 首先要修改.ini裡面的兩個路徑 設定mysql的安裝目錄 basedir d mysql mysql 5.7.17 win32 設定mysql資料庫的資料的存放目錄 datadir d mysql mysql 5.7.17 win32 data 注意 ...

安裝mysql遇到的問題

解壓完成後,並沒有setup程式,這已經是安裝好的,下面就需要配置 解壓目錄下需要新增乙個檔案my.ini,並在裡面輸入下面的 client port 3306 mysqld 設定3306埠 port 3306 設定mysql的安裝目錄 basedir f mysql 5.7.22 winx64 設...

Mysql 安裝遇到的問題 2

問題 error 1045 28000 access denied for user root localhost using password yes 解決步驟 mysqld safe user mysql skip grant tables skip networking mysql u roo...