發表文章

目前顯示的是 3月, 2025的文章

MySQL_ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)_重置root密碼

圖片
  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) (using password: NO) 表示嘗試連接時沒有提供密碼。 (using password: YES) 表示嘗試連接時提供了密碼。 我這邊起初密碼是rootroot 如果出現的是這種錯誤,絕大部分偏向是更改過密碼但忘記了用上一次記憶中的密碼。 ERROR 1045 (28000): Access denied for user 'root'@'localhost'  (using password: YES) 表示我們嘗試以root用戶連接MySQL資料庫時提供的密碼不正確。 重置root密碼 Step1.開啟Windows「服務」管理工具(可以在開始菜單中搜索「services.msc」),找到MySQL服務,並停止它。 指令方式: taskkill /F /IM mysqld.exe 以下是介面方式: 當你關閉MySQL服務後,3306服務此時就沒有相關服務在使用了。 Step2.在C槽新增一個mysql-init.txt 內容如下 ALTER USER 'root'@'localhost' IDENTIFIED BY '你想更換的新密碼'; Step3.用cmd並以系統管理員來啟動 下以下指令 mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --init-file="C:\\mysql-init.txt" --console Step4.另外去開Command Line Client確認是否可用新密碼登入 確認密碼已更改成新的了 Step5.將剛開起的cmd都關閉後,再重啟MySQL服務即可。 此時你用新的密碼來cmd登也可以成功。 Ref: H...

探索式資料分析EDA_皮爾森積差相關係數(波士頓房價)_熱度圖&散點圖

圖片
  這邊要先確保sklearn使用版本要是1.1.3版本(之後版本都移除波士頓房價的toy dataset了) 然後numpy不能到2.x版本 要是1.26.4 https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from Attribute Information (in order):         - CRIM     per capita crime rate by town         - ZN       proportion of residential land zoned for lots over 25,000 sq.ft.         - INDUS    proportion of non-retail business acres per town         - CHAS     Charles River dummy variable (= 1 if tract bounds river; 0 otherwise)         - NOX      nitric oxides concentration (parts per 10 million)         - RM       average number of rooms per dwelling         - AGE      proportion of owner-occupied units built prior to 1940     ...