PHP MySQL connection (mountain lion) -


beginner on here. im trying connect mysql database php. im running mysql 5.6.11, php 5 , apache on mac osx (mountain lion). php code connection. when try opening .php file, nothing happens(blank page), same if y try query.

<?php  $pdo = new pdo('mysql:host=localhost;dbname=database1', 'user', 'password');   ?> 

i thought mysql wasn't configured. current socket

                     unix socket /tmp/mysql.sock 

currently running mysql through pref pane.

cheers


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -