Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > Non-VodaHost website development software products .

Notices

Non-VodaHost website development software products . Discussions, articles and help with about third party website development softwares such as Microsoft FrontPage, Microsoft Publisher, Macromedia Dreamweaver, Macromedia Flash, Swish Flash, Adobe Go Live and any and all other third party website development software products .

Closed Thread
 
Thread Tools
  #1  
Old 02-17-2008, 06:28 PM
Private
 
Join Date: Nov 2007
Posts: 2
Smile Dreamweaver and Connecting to a MySql Database

Hello everyone! This is the first time I write in here . . . furthermore i'm quite new, so please be understanding if something I write sounds a bit naive!

My web site is www.bigbangcentral.com

I am working with Dreamweaver CS3 and want to build dynamic web pages using PHP and MySQL. When I used my computer as a local server I managed to do it successfully and created and connected to the MySQL databases and the whole site worked well (it was my testing/experimenting phase)!

My problem now is how to create a database in my real on line web site? I used the phpAdmin from cPanel and created one (and even put data in it) but I can't find the database file. Shouldn't it be stored in a folder somewhere with the rest of the site files?

Secondly how can I connect from Dreamweaver on my local computer with the database in my site?

What is the MySQL server name I should use in order to create the connection?

Are the username and passwords rewuired the same as the ones to register in cPanel? How can I link my site to the database in here?

In cPanel I also created a dummy user with access to the database and the following connection string was generated:

$dbh=mysql_connect ("localhost", "glsteogb_admin", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("glsteogb_members");

But I can't see how it helps me to build the connection that I want with the database.


Please help me out . . . I've spent ages trying to this plus I haven't found any other articles in here that could help me out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old 02-18-2008, 02:22 AM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: Dreamweaver and Connecting to a MySql Database

No, MySQL databases doesn't store any files on your on your site itself, its closer to the server root, you don't have direct access to it. You can only query the database.

I can't help with that one, I use phpMyAdmin or scripts to access data databases.

To connect remotely to your MySQL database use the ip address of the server. To connect locally use "localhost" (locally as in files on your site that connect to the database).

The username and password are different from your username/password to login to cpanel. It is created by you on the same page you create your database.

The generated code is php code to connect to your database. You have to connect to the database before you can query it.

Heres some php and mysql tutorials
http://www.tizag.com/phpT/
http://www.tizag.com/mysqlTutorial/
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 06:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203