Showing Drupal BLOB data in phpMyAdmin

Dan's picture

Drupal 7 stores lots of settings in the database as BLOBs – Binary Large OBjects. When coding, you often need to see what's going on in these BLOBbed fields, but the default phpMyAdmin configuration won't let you examine this data.

The solution is to tweak phpMyAdmin's config file (config.inc.php) to include the following lines:


$cfg['ProtectBinary'] = false;
$cfg['DisplayBinaryAsHex'] = false;

You should now be able to see the serialised data.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

About formatting options