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
Post a Comment