MacOSX10.5でphpからmysqlに接続できない場合。 mysqlをインストールしただけじゃ繋がらないです。 以下のように正しく繋いであげましょう。 /usr/local/mysql/bin/mysql -u root -p でrootでmysqlに入り mysql> status; ————– /usr/local/mysql/bin/mysql Ver 14.14 Distrib 5.1.40, for apple-darwin9.8.0 (powerpc) using readline 5.1 Connection id: 26 SSL: Not in use Current pager: stdout Using outfile: ” Using delimiter: ; Server version: 5.1.40 MySQL Community Server (GPL)
![MacOSX10.5でphpからmysqlに接続できない場合。 | 林檎屋](https://cdn-ak-scissors.b.st-hatena.com/image/square/150fa3f1de0bd4bde75eb26151fc799195f733fe/height=288;version=1;width=512/https%3A%2F%2Fwww.inohome.net%2Fkuma%2Fwp-content%2Fplugins%2Fall-in-one-seo-pack%2Fimages%2Fdefault-user-image.png)