Localhost Newbie Question |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Zymic Free Web Hosting Databases & MySQL |
||
![]() |
Localhost Newbie Question |
||
Mar 17 2011, 03:53 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 17-March 11 Member No.: 182,389 |
I started building a site with php using xampp (for mysql and apache). I tested it using a database i created on the xampp php my admin. To connect to it i had to use localhost as a server which made complete sense to me cuz the database was on my computer. Now i wanted to progress a little and build the database online for when i bring my server online. I created the database, and wrote a few tables, i could then log on and admin and edit them no problem. Only problem is now i can't connect to it thru php. Now my real question is why is the hostname on the server for Zymic localhost when it's online and not on my local disk and how is php supposed to know where the database is if i never gave it an address for the site. How come the hostname is localhost no matter where the DB is located? Maybe if i understand that i can understand why my database won't connect.
|
|
|
Mar 18 2011, 02:43 PM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 28-December 10 Member No.: 170,719 |
I guess the address "localhost" is intended for the PHP code residing on the Zymic server. You can not access it because it is really not local for you. As to the internet address for the server, it was my goal to find it on the forum. If anybody knows, please respond. I wanted to connect to it remotely via some database managent tool and not to use SQL Buddy interface.
|
|
|
Mar 18 2011, 02:46 PM
Post
#3
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 18-March 11 Member No.: 182,524 |
Resp All, I have registered and created my page on this site. Kindly let me know how to put my index.html and other stuff so that it can be displayed there
|
|
|
Mar 18 2011, 02:57 PM
Post
#4
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 28-December 10 Member No.: 170,719 |
Well, I have found an answer to my own question:
"On Zymic, We have closed all remote connections to our MySQL servers..." http://zymickb.zxq.net/index.php/MySQL#Remote_Connections To pram3835: Go to you Zymic Control Pannel, at the lower left corner you will see the host name, your FTP user name and the port number. Connect to the FTP host using some FTP client like Filezilla and upload your files. |
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 24th May 2013 - 09:10 PM |