![]() |
Using Netbeans to connect to MySQL DB - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Using Netbeans to connect to MySQL DB (/showthread.php?tid=18604) |
Using Netbeans to connect to MySQL DB - El Forum - 05-12-2009 [eluser]PermanaJ[/eluser] I'm using Netbeans for my PHP editor. Im trying to connect to the MySQL database on my hosting, not MySQL database on mycomputer. I'm not really understand what to put on the field, anyone try it before ? Using Netbeans to connect to MySQL DB - El Forum - 05-12-2009 [eluser]n0xie[/eluser] Name: MySQL Connector/ J drive Host: the ip/dns name of your server Port: the port number the mysql daemon is listening on (usually 3306) Database: the name of your database User Name: A valid user for the database Password: the password associated with that user. That's all... Using Netbeans to connect to MySQL DB - El Forum - 05-12-2009 [eluser]PermanaJ[/eluser] Unable to add connection, Cannot establish connection to jdbc:// .... I've keep trying but no luck ... Using Netbeans to connect to MySQL DB - El Forum - 05-12-2009 [eluser]Cro_Crx[/eluser] YAY another NetBeans user ![]() Up the top it has two options, one called "Field Entry" and the other for "Direct URL Entry". Make sure it's on Field entry otherwise you might get some errors spit out like the one your getting now. Other than that, just make sure your database settings are correct and that your sever is running. Is your MySQL server on the same machine or a different machine that you're accessing? Using Netbeans to connect to MySQL DB - El Forum - 05-12-2009 [eluser]PermanaJ[/eluser] yes, I'm on Field Entry. It has field as follow: Name, Host, Port, Database, Username, Password, Additional Props ... I know what to type on database, username and password field. But, I'm not sure about the others. I have domain indotrademart.net/cpanel to access to cpanel, should I put the indotrademart.net for the host ? Where can I find more detailed information ... ? Glad to know there are also another Netbeans user .. ![]() Using Netbeans to connect to MySQL DB - El Forum - 05-12-2009 [eluser]Cro_Crx[/eluser] If you go into your CPanel it's more than likely going to have the MySQL server details though. I really doubt that your host will have networking enabled on your MySQL database, almost all the time your database is only accessible on the same machine or the local network it's connected on. If you want to edit your database you've probably got a tool call 'phpmyadmin' in the CPanel somewhere, see if you can find it ![]() Using Netbeans to connect to MySQL DB - El Forum - 05-12-2009 [eluser]PermanaJ[/eluser] Ohhh I see, yeah maybe I can't do it because I'm on shared hosting. Yeah, back to phpmyadmin .... ![]() |