[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Secure Copy and MySQL parameters



I'm trying to copy a test PHP script from my system to my home directory
on vodka:

[micah@eclipse lkb]$ scp -imyoder test.php3
vodka.linuxkb.org:~/public_html/
Warning: Identity file myoder does not exist.
micah@vodka.linuxkb.org's password:
Permission denied.
lost connection          

Anyone know what I'm doing wrong here?  It doesn't seem to like the -l
username option that ssh accepts.

And while I'm at it, here's the test.  I need to know some things here -
username, password, database name for MySQL.

[micah@eclipse lkb]$ cat test.php3
<html><body>

<?
  $conn = mysql_pconnect("vodka.linuxkb.org", "nobody", "");
  if (!$conn) {
    echo "Error connecting!";
    exit;
  }

  $result = mysql_query("select fname from users", $conn);
  if (!$result) {
    echo "Problem with the query!";
    exit;
  }

  while ($row = mysql_fetch_array($result)) {
    echo $row["fname"];
    echo "<br>";
  }
?>

</body></html>