So I have this Amazon Web Service database all set up
I'm working off an old tutorial for an application that I'm planning on using it with.
I noticed that mysql_connect was deprecate when I looked it up.
What can I use as an alternative? How can I connect to my amazon database?
<?
mysql_connect("localhost", "username", "password") or die ("Can't connect to database server");
mysql_select_db("videoRecorderDemo") or die ("Can't select database");
mysql_query("SET NAMES 'utf8'");
?>
I get this error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'192.168.1.1' (using password: YES) in /www/zxq.net/r/e/d/red5vptest/htdocs/utility/db.php on line 2
Can't connect to database server
No matter what credentials I use. It also doesn't help that Amazon's code samples show you connecting in an entirely different way.