Title: Hide SQL Errors?
Last modified: August 18, 2016

---

# Hide SQL Errors?

 *  [moogie](https://wordpress.org/support/users/moogie/)
 * (@moogie)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/hide-sql-errors/)
 * In the event of an SQL error, is it possible to hide the error details from public
   view? Specifically, I would like to exclude the database name from the error,
   or the detailed error message all together?
 * Thanks for any advice.

Viewing 1 replies (of 1 total)

 *  [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * (@pizdin_dim)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/hide-sql-errors/#post-427432)
 * Include these two lines at the bottom of your “.htaccess” file:
 * `
    php_flag display_errors off php_flag display_startup_errors off

Viewing 1 replies (of 1 total)

The topic ‘Hide SQL Errors?’ is closed to new replies.

## Tags

 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/hide-sql-errors/#post-427432)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
