title: global $wpdb wordpress problems after upgrading php 5.3 to 5.5, not working when logged in
body: <p>Can anyone confirm, that when logged into a wordpress website the global $wpdb doesnt work in own template scripts. </p>
  
  <p>First i run into some problems after upgrading to php 5.5 (from 5.3)
  The website was running, but when logging into the wordpress i got those messages
  Access denied for user 'root'@'localhost' (using password: NO) 
  then after adding root in mysql</p>
  
  <p>Access denied for user 'apache'@'localhost' (using password: NO)
   after adding apache
  i got no database selected. But only when i am logged in the wordpress website</p>
  
  <p>Whats going wrong here, got it now working by bypassing global $wpdb but thats not the way i want it</p>