HTTP auth & MySQL connect