单项选择题

怎么使用PDO去连接MySQL()

A.new PDO(’mysql=localhost;dbname=test’,’root’,’root’)
B.new PDO(’mysql:host=localhost;dbname=test’,’root’,’root’)
C.new PDO(’mysql:host=localhost’,’root’,’root’)
D.new PDO(’mysql:host=localhost;dbname=test’)