If the connection succeeds, you will see the message "Connected", otherwise, PDO will throw a PDOException explaining why the connection failed.
如果连接成功,您将看到消息“Connected ”,否则,PDO将抛出一个PDOException,解释为什么连接失败。
If a connection cannot be made to the database management system, you receive a message indicating that the connection failed and the reason it failed when the PHP script is executed.
如果无法连接到数据库管理系统,那么在执行php脚本时,您将会收到一个消息,指出连接失败及失败的原因。
If a connection cannot be made to the database management system, you receive a message indicating that the connection failed and the reason it failed when the PHP script is executed.
如果无法连接到数据库管理系统,那么在执行php脚本时,您将会收到一个消息,指出连接失败及失败的原因。
应用推荐