Current time: 02-05-2012, 12:35 AM Hello There, Guest! (LoginRegister)



Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection string
08-31-2010, 06:19 PM (This post was last modified: 09-13-2010 08:47 PM by Sysop.)
Post: #1
Connection string
How do I know what my connection string is.
I'm sorry but I'm really new to MySQL, and I just want to learn how to make a table in a database and populate and query it.

I dont know how to even do that from cpanel so I want to try it proglamatically from within C#.

can anyone help?

Say my site is http://www.mysite.co.cc, and my database name is test1_test1

would my connection string be

Server=http://www.mysite.co.cc;Database=test1_test1;Uid=myUsername;Pwd=myPassword;
Find all posts by this user
Quote this message in a reply
09-01-2010, 08:54 PM
Post: #2
RE: Connection string
Depends on how you are accessing it - I am not 100% sure from a C# program though.

Free PHP Hosting (Sys)tems (op)erator
Rate and review our free web hosting service - see this thread for more info.
Find all posts by this user
Quote this message in a reply
09-02-2010, 06:04 PM
Post: #3
RE: Connection string
I would be accessing it via my windows form application.

I have looked on http://www.connectionstrings.com/

But just cannot get my head around it, its the database url that is confusing me, whether a port needs to be added etc...
Find all posts by this user
Quote this message in a reply
09-03-2010, 08:44 AM (This post was last modified: 09-03-2010 08:44 AM by Mick.)
Post: #4
RE: Connection string
Let me try and put my question another way.

What is the address of my database? its not localhost because I want to connect remotely.
How do I remotely connect to and query my database.
Find all posts by this user
Quote this message in a reply
09-08-2010, 11:32 PM
Post: #5
RE: Connection string
you could use epic.0sites.net or the IP or your domain .. would just need to add them to your MySQL access hosts.

Free PHP Hosting (Sys)tems (op)erator
Rate and review our free web hosting service - see this thread for more info.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: