Software >> Services >> RDBMS >> MySQL >> What are the connection strings to MySQL for Perl or PHP

Perl ==== $dbh = DBI->connect("DBI:mysql:database_name:localhost","username","password"); PHP === $dbh = mysql_connect ("localhost", "username", "password") or die ('I cannot connect to the database because: ' . mysql_error());