
Python 查詢mysql數(shù)據(jù)庫(kù)
首先需要安裝pymysql庫(kù) pip3直接安裝Pip3 install pymysql參考上圖為安裝成功然后pymysql.connect鏈接數(shù)據(jù)庫(kù) 具體參數(shù)為1. host #數(shù)據(jù)庫(kù)地址2. prot #端口號(hào) 默認(rèn)為33063. user #用戶名4. passwd #密碼5. db #數(shù)據(jù)庫(kù)名稱6. charset #字符集 例: conn = p...
2023-03-17

mysql數(shù)據(jù)庫(kù)索引意外丟失恢復(fù)方案
當(dāng)mysql?數(shù)據(jù)庫(kù)意外崩潰重啟后查詢某些表會(huì)發(fā)生1194 table 'xxxxx' is marked as crashed and should be repaired錯(cuò)誤,這個(gè)錯(cuò)誤就代表該數(shù)據(jù)表崩潰了
2020-09-04