Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = "naveenkumar";
- $password = "naveenkumar";
- $hostname = "test-db.clvf02gpleds.us-west-2.rds.amazonaws.com:3306";
- $dbname = "cloud";
- //connection to the database
- $dbhandle = mysql_connect($hostname, $username, $password)
- or die("Unable to connect to MySQL");
- echo "Connected to MySQL using username - $username, password - $password, host - $hostname<br>";
- $selected = mysql_select_db("$dbname",$dbhandle)
- or die("Could not select database");
- echo "Connected to Database - $dbname";
- ?>
Add Comment
Please, Sign In to add comment