Sean Breslin wrote:
> I uploaded them to my webhost. I test it from
> there. It's MHer.org. I already have another
> MySQL database running there for a forum, but that
> uses PHP to interface with and I didn't write it's
> code. (Although phpMyAdmin makes generating the
> commands for connecting and querying through PHP
> very easy... One of the reasons I wish I could
> use PHP.)
>
> So in the code, I tell it to connect to
> localhost:3306 because that's where the database
> should be... So I believe that all the files and
> the database are on the same machine. I am,
> however, not at that machine, so I am running the
> files from another computer through the internet.
> Could that be causing the problem? I wouldn't
> think it should...
The applet doesn't run on the machine the database server is (Mher.org), it runs on your local computer, thus localhost in the database URL refers to _your_ computer, not the database server.
-Mark
Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html