php - MDB2 Failure to Connect to MySQL on OSX Mavericks -


configuration:

mac os x 10.9.3 php 5.4.24 (default) mysql 5.6.17 pear list:     mdb2              2.4.1   stable     mdb2_driver_mysql 1.4.1   stable     pear              1.9.4   stable 

i have database in place on localhost , it's accessible particular account , password:

% mysql -u stacks -p password mysql> use redseaexp_radtags; database changed mysql> ^d 

but:

% php -a php > require_once("/usr/local/share/pear/mdb2.php"); php > $dsn = 'mysql://stacks:password@localhost/redseaexp_radtags'; php > $options = array(); php > $dbh = mdb2::connect($dsn, $options); php > echo($dbh->getmessage() . "\n"); mdb2 error: connect failed php > echo($dbh->getuserinfo() . "\n"); connect: [error message: no such file or directory] [native code: 2002] [native message: no such file or directory]  ** mysql(mysql)://stacks:xxx@localhost/redseaexp_radtags php > ^d 

i don't see issues code, missing something; same errors occur if leave off '/redseaexp_radtags'.

is there perhaps software compatibility issue?


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -