当前位置:网站首页>PHP database connection succeeded, but data cannot be inserted
PHP database connection succeeded, but data cannot be inserted
2022-07-04 02:54:00 【CSDN Q & A】
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user ' ha-ha '@'localhost' (using password: NO) in E:\member\postReg.php:17 Stack trace: #0 E:\member\postReg.php(17): PDO->__construct('mysql:host=;dbn...', '\xE5\x93\x88\xE5\x93\x88', NULL) #1 {main} thrown in E:\member\postReg.php on line 17
What's wrong solve Very anxious

Take the answer :
Remove the circled code , use mysqli Why build another PDO What are the linked objects for , It is not necessary to use PDO 了


If you have other questions, you can continue to communicate ~
边栏推荐
- 2022 examination summary of quality controller - Equipment direction - general basis (quality controller) and examination questions and analysis of quality controller - Equipment direction - general b
- Advanced learning of MySQL -- Application -- storage engine
- The requests module uses
- The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
- Johnson–Lindenstrauss Lemma
- What are the conditions for the opening of Tiktok live broadcast preview?
- 查詢效率提昇10倍!3種優化方案,幫你解决MySQL深分頁問題
- Site favorites
- Properties of binary trees (numerical aspects)
- Comment la transformation numérique du crédit d'information de la Chine passe - t - elle du ciel au bout des doigts?
猜你喜欢

Database concept and installation

How to subcontract uniapp and applet, detailed steps (illustration) # yyds dry goods inventory #

C learning notes: C foundation - Language & characteristics interpretation

High level application of SQL statements in MySQL database (I)

Problems and solutions of several concurrent scenarios of redis

Network communication basic kit -- IPv4 socket structure

Tsinghua University product: penalty gradient norm improves generalization of deep learning model

150 ppt! The most complete "fair perception machine learning and data mining" tutorial, Dr. AIST Toshihiro kamishima, Japan

Unspeakable Prometheus monitoring practice

Unity controls the selection of the previous and next characters
随机推荐
Bugku Zhi, you have to stop him
長文綜述:大腦中的熵、自由能、對稱性和動力學
[UE4] parse JSON string
Career development direction
1day vulnerability pushback skills practice (3)
中電資訊-信貸業務數字化轉型如何從星空到指尖?
機器學習基礎:用 Lasso 做特征選擇
Jenkins continuous integration environment construction V (Jenkins common construction triggers)
Problems and solutions of several concurrent scenarios of redis
MySQL workbench use
FRP intranet penetration
Push technology practice | master these two tuning skills to speed up tidb performance a thousand times!
A. Div. 7
Node solves cross domain problems
Talking about custom conditions and handling errors in MySQL Foundation
String: LV1 eat hot pot
Advanced learning of MySQL -- Application -- storage engine
Package and download 10 sets of Apple CMS templates / download the source code of Apple CMS video and film website
Take you to master the formatter of visual studio code
Base d'apprentissage de la machine: sélection de fonctionnalités avec lasso