FreeHostia Forums

For MySQL Database what server name is using?
Page 1 of 1

Author:  coolnik [ Fri Sep 02, 2011 3:35 am ]
Post subject:  For MySQL Database what server name is using?

To whom it may concern,

(1) I have created MySQL database using phpMyAdmin at MySQL database and succeded in creating 3 - Tables but now using php code I want to access that database. In the Book: "Teach Yourself Web Design Vissualy" Auther "Rob Huddleston" In page 303 of the said book he has used the following php code for localhost:-


mysql_connect('localhost', 'root');
mysql_select_db('tyvdata');  // 'tyvdata' is the name of the MySQL database


(2) - My question is:- In place of 'localhost' (server) in (which is a remote server) what server name I should use to 'connect' to my database?

Kuljit Nikhanj

Author:  boburko [ Fri Sep 02, 2011 10:46 am ]
Post subject:  Re: For MySQL Database what server name is us


Where are currently using several MySQL server hosts. From the MySQL section in your Control Panel, you can see the one, assigned to your account. If you have any troubles, please open a new support ticket from the Help section of your Control Panel, and we will tell you the right server. Thank you.

Best Regards,
Bob Dean

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group