![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Specifically, what is the proper URL coding for this? What exactly do I replace "localhost" with? As there are three different ways to do this, with neither seeming to work. 1) example.com:3000 (for reference only) 2) www.example.com:3000 3) http://example.com:3000 |
|
What I am attempting to do is, create a script on my local machine, that will create the table on the actual domain database. |
|
Then, do I use the port and how do I find out exactly which port to use? When I created the database on the server, I saw the port number of 3306. Is that the port number of the table or the database(s) location? |
#3
| |||
| |||
|
|
richard wrote: Specifically, what is the proper URL coding for this? What exactly do I replace "localhost" with? As there are three different ways to do this, with neither seeming to work. 1) example.com:3000 (for reference only) 2) www.example.com:3000 3) http://example.com:3000 mysql -u<username> -p -h example.com -P 3000 <databasename the "-P 3000" is really only needed if the database server uses another port than the default 3306. What I am attempting to do is, create a script on my local machine, that will create the table on the actual domain database. I suggest you look at PHP scripts, see www.php.net/mysqli It's easy to add other things to the script too, but you can use mysqliadmin too for just SQL related things. Then, do I use the port and how do I find out exactly which port to use? When I created the database on the server, I saw the port number of 3306. Is that the port number of the table or the database(s) location? That's the port of the database service, same port number for all users and regardless which database or table your use. |
#4
| |||
| |||
|
|
On Sat, 09 Apr 2011 08:29:16 +0200, J.O. Aho wrote: richard wrote: Specifically, what is the proper URL coding for this? What exactly do I replace "localhost" with? As there are three different ways to do this, with neither seeming to work. 1) example.com:3000 (for reference only) 2) www.example.com:3000 3) http://example.com:3000 mysql -u<username> -p -h example.com -P 3000 <databasename the "-P 3000" is really only needed if the database server uses another port than the default 3306. What I am attempting to do is, create a script on my local machine, that will create the table on the actual domain database. I suggest you look at PHP scripts, see www.php.net/mysqli It's easy to add other things to the script too, but you can use mysqliadmin too for just SQL related things. Then, do I use the port and how do I find out exactly which port to use? When I created the database on the server, I saw the port number of 3306. Is that the port number of the table or the database(s) location? That's the port of the database service, same port number for all users and regardless which database or table your use. Thanks for the info. But I think you misunderstood. I do not want to establish a database on my local machine. I am using an editor on my machine and want to write a file that will send the data I create locally to the hosted server through the script. Regardless of which I use, my editor comes up with an error saying it can't connect. So what do I use instead of "localhost"? |
#5
| |||
| |||
|
|
richard wrote: On Sat, 09 Apr 2011 08:29:16 +0200, J.O. Aho wrote: richard wrote: Specifically, what is the proper URL coding for this? What exactly do I replace "localhost" with? As there are three different ways to do this, with neither seeming to work. 1) example.com:3000 (for reference only) 2) www.example.com:3000 3) http://example.com:3000 mysql -u<username> -p -h example.com -P 3000 <databasename the "-P 3000" is really only needed if the database server uses another port than the default 3306. What I am attempting to do is, create a script on my local machine, that will create the table on the actual domain database. I suggest you look at PHP scripts, see www.php.net/mysqli It's easy to add other things to the script too, but you can use mysqliadmin too for just SQL related things. Then, do I use the port and how do I find out exactly which port to use? When I created the database on the server, I saw the port number of 3306. Is that the port number of the table or the database(s) location? That's the port of the database service, same port number for all users and regardless which database or table your use. Thanks for the info. But I think you misunderstood. I do not want to establish a database on my local machine. I am using an editor on my machine and want to write a file that will send the data I create locally to the hosted server through the script. Regardless of which I use, my editor comes up with an error saying it can't connect. So what do I use instead of "localhost"? it my be that your isp etc does no allow direct mysqld connections from remote machines |
#6
| |||
| |||
|
|
On Sat, 09 Apr 2011 08:29:16 +0200, J.O. Aho wrote: richard wrote: Specifically, what is the proper URL coding for this? What exactly do I replace "localhost" with? As there are three different ways to do this, with neither seeming to work. 1) example.com:3000 (for reference only) 2) www.example.com:3000 3) http://example.com:3000 mysql -u<username> -p -h example.com -P 3000 <databasename the "-P 3000" is really only needed if the database server uses another port than the default 3306. What I am attempting to do is, create a script on my local machine, that will create the table on the actual domain database. I suggest you look at PHP scripts, see www.php.net/mysqli It's easy to add other things to the script too, but you can use mysqliadmin too for just SQL related things. Then, do I use the port and how do I find out exactly which port to use? When I created the database on the server, I saw the port number of 3306. Is that the port number of the table or the database(s) location? That's the port of the database service, same port number for all users and regardless which database or table your use. Thanks for the info. But I think you misunderstood. I do not want to establish a database on my local machine. |
|
I am using an editor on my machine and want to write a file that will send the data I create locally to the hosted server through the script. Regardless of which I use, my editor comes up with an error saying it can't connect. So what do I use instead of "localhost"? |
#7
| |||
| |||
|
|
Specifically, what is the proper URL coding for this? What exactly do I replace "localhost" with? As there are three different ways to do this, with neither seeming to work. 1) example.com:3000 (for reference only) 2) www.example.com:3000 3) http://example.com:3000 What I am attempting to do is, create a script on my local machine, that will create the table on the actual domain database. Then, do I use the port and how do I find out exactly which port to use? When I created the database on the server, I saw the port number of 3306. Is that the port number of the table or the database(s) location? |
#8
| |||
| |||
|
|
On 09-04-2011 07:39, richard wrote: Specifically, what is the proper URL coding for this? What exactly do I replace "localhost" with? As there are three different ways to do this, with neither seeming to work. 1) example.com:3000 (for reference only) 2) www.example.com:3000 3) http://example.com:3000 What I am attempting to do is, create a script on my local machine, that will create the table on the actual domain database. Then, do I use the port and how do I find out exactly which port to use? When I created the database on the server, I saw the port number of 3306. Is that the port number of the table or the database(s) location? You need to learn about firewalls... Those things tend to STOP traffic at ports that are not allowed, like port 3306. So, generally, you are right, and you should be able to access your remote database through remoteservername:3306, Where remoteservername can be example.com, www.example.com, or whatever.example.com... But in most, if not all, situations there is a firewall which makes this impossible even if its enabled at mysqld level. which it may not be. |
#9
| |||
| |||
|
|
Luuk wrote: On 09-04-2011 07:39, richard wrote: Specifically, what is the proper URL coding for this? What exactly do I replace "localhost" with? As there are three different ways to do this, with neither seeming to work. 1) example.com:3000 (for reference only) 2) www.example.com:3000 3) http://example.com:3000 What I am attempting to do is, create a script on my local machine, that will create the table on the actual domain database. Then, do I use the port and how do I find out exactly which port to use? When I created the database on the server, I saw the port number of 3306. Is that the port number of the table or the database(s) location? You need to learn about firewalls... Those things tend to STOP traffic at ports that are not allowed, like port 3306. So, generally, you are right, and you should be able to access your remote database through remoteservername:3306, Where remoteservername can be example.com, www.example.com, or whatever.example.com... But in most, if not all, situations there is a firewall which makes this impossible even if its enabled at mysqld level. which it may not be. |
#10
| ||||
| ||||
|
|
Specifically, what is the proper URL coding for this? What exactly do I replace "localhost" with? |
|
As there are three different ways to do this, with neither seeming to work. 1) example.com:3000 (for reference only) 2) www.example.com:3000 3) http://example.com:3000 |
|
What I am attempting to do is, create a script on my local machine, that will create the table on the actual domain database. |
|
Then, do I use the port and how do I find out exactly which port to use? When I created the database on the server, I saw the port number of 3306. Is that the port number of the table or the database(s) location? |
![]() |
| Thread Tools | |
| Display Modes | |
| |