Title: Connect and Query WordPress Database
Last modified: August 19, 2016

---

# Connect and Query WordPress Database

 *  [millsy](https://wordpress.org/support/users/millsy/)
 * (@millsy)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/connect-and-query-wordpress-database/)
 * I want to be able to run some sql queries against my wordpress mysql database
   using php. What variables need to be passed in to make a connection:
 * $dbhost, $dbuser, $dbpassword
 * Is that all I would need?

The topic ‘Connect and Query WordPress Database’ is closed to new replies.

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
