回答編集履歴

2

修正

2017/01/18 07:59

投稿

shi_ue
shi_ue

スコア4437

test CHANGED
@@ -14,6 +14,8 @@
14
14
 
15
15
  ```じゃないですか?
16
16
 
17
+ 当然デフォルトポート3306で動いているときはportは省略可能です。
18
+
17
19
 
18
20
 
19
21
  参照:[http://php.net/manual/ja/ref.pdo-mysql.connection.php](http://php.net/manual/ja/ref.pdo-mysql.connection.php)

1

参照URL

2017/01/18 07:59

投稿

shi_ue
shi_ue

スコア4437

test CHANGED
@@ -13,3 +13,7 @@
13
13
  $dbh = new PDO($dsn, $user, $password);
14
14
 
15
15
  ```じゃないですか?
16
+
17
+
18
+
19
+ 参照:[http://php.net/manual/ja/ref.pdo-mysql.connection.php](http://php.net/manual/ja/ref.pdo-mysql.connection.php)