Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

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.

left Zymic Webmaster ForumsZymic Free Web HostingDatabases & MySQL right
left right
shirotensaki
post 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.
Go to the top of the page 
 
  + Quote Post

Posts in this topic

 Reply to this topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 19th June 2013 - 07:35 PM