Title: Database Connections
Last modified: August 20, 2016

---

# Database Connections

 *  [phsailor](https://wordpress.org/support/users/phsailor/)
 * (@phsailor)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/database-connections/)
 * I am a S/W Developer, new to Web/WordPress programming. I know that a database
   has a finite number of connections available. Now, lets say I have a blog that
   displays a simple post. The way I expect things to work is that a person gets
   on my site. A database connection is opened, the post is retrieved from a table
   and then the connection is closed. This would allow a large amount of people 
   to view my site at the same time and leave my site open all day. I get feeling
   that using the $wpdb means that a connections is open all the time. I hope this
   is not the case. Could someone please explain. Does a connection get closed when
   $wpdb goes out of scope?
    Thanks

The topic ‘Database Connections’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [phsailor](https://wordpress.org/support/users/phsailor/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/database-connections/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
