Re: Cannot get database connection

2005-11-23 Thread Gobi
Hassan Schroeder wrote: Gobi wrote: MySQL 5.0.15 and Tomcat 5.5.12. However, I cannot seem to get a connection object from my servlet and for the life of me, I can't figure out why. Here is what I have done: and I created the following servlet, TestSQL: It's possible the

Re: Cannot get database connection

2005-11-23 Thread Gobi
Xiaobo Chen wrote: I am not sure if you're trying to connect from outside of your office newwork. If you try 'telnet' using 3306 (forgot the syntax, check the Mysql site)outside your office network and if you couldn't get through,(otherwise you will get some garbage characters) then you can't co

Re: Cannot get database connection

2005-11-23 Thread Xiaobo Chen
I am not sure if you're trying to connect from outside of your office newwork. If you try 'telnet' using 3306 (forgot the syntax, check the Mysql site)outside your office network and if you couldn't get through,(otherwise you will get some garbage characters) then you can't connect to the database

Re: Cannot get database connection

2005-11-23 Thread Gobi
Xiaobo Chen wrote: Have you tried to put the port 3306 after the host? I assume you are in the localhost. Yes, I am trying to connect in localhost. I did 'nmap localhost' and port 3306 is open and I can connect to mysqld with mysql client. I will try putting 3306 after the host when I get

Re: Cannot get database connection

2005-11-23 Thread Xiaobo Chen
Have you tried to put the port 3306 after the host? I assume you are in the localhost. > Not sure if this is the place to ask but hopefully someone can help me > here. I am setting an application system and have successfully setup > MySQL 5.0.15 and Tomcat 5.5.12. However, I cannot seem to get a

Cannot get database connection

2005-11-22 Thread Gobi
Not sure if this is the place to ask but hopefully someone can help me here. I am setting an application system and have successfully setup MySQL 5.0.15 and Tomcat 5.5.12. However, I cannot seem to get a connection object from my servlet and for the life of me, I can't figure out why. Here i