VScode中鏈接數據庫


安裝mysql模塊

image-20220417111626621

創建數據庫和表並輸入內容

image-20220417111656187

image-20220417111703619

image-20220417111711895

注意端口號還有密碼

image-20220417111725819

加入條件查找

image-20220417111734172

image-20220417111750525

image-20220417111758361

報錯

Client does not support authentication protocol requested by server; consider upgrading MySQL client'

解決辦法

image-20220417112005280

1、use mysql;

2、alter user 'root'@'localhost' identified with mysql_native_password by '********';

3、flush privileges;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM