Dreamweaver Mx, Php, Mysql Help connecting Dreamweaver!!
#1
Posted 29 October 2003 - 09:18 AM
I have created a database called "user", which has been renamed "competi_user" as I created it through cpanel. I also created a user which is able to access the database called "competi" which was also renamed "competi_competi" as before. I then created a table called user and populated it with a couple of records.
I then went to Dreamweaver and setup a site with a testing server. I don't have PHP or MySQL locally so I decided to use the webserver as the testing server.
Server model: PHPMySQL
Access: FTP
FTP host: Mywebsite.com
Login: MyLogin
Password: MyPassword
Testing this showed that the ftp link works. So far, so good. (Also setup local and remote stuff too.)
I then go to the Application - Databases panel to try and create a connection from Dreamweaver to my testing server.
Connection: MySQL Connection
Connection name: dbUserConnection
My SQL Server: localhost
Username: competi_competi
Password: the password
Database: competi_user
When I click test I get "Unknown error". Very helpful. I have tried changing the SQL server name to the webserver name but this makes no difference.
Anyone have any ideas what I am doing wrong? I am going mad trying to work it!!! Any help, tips, prompts and hand holding would be appreciated!
#2
Posted 29 October 2003 - 09:52 AM
Also you might want to try setting up a test server on yr PC....this package is a useful one where PHP, MySql and Apache are preconfigured and allows you to run it on your window box.....PHPDev.
Dennis
#3
Posted 29 October 2003 - 07:16 PM
I worked through a similar problem a while back...it took me about 2 weeks!!
One quick suggestion...in your Testing Server information...in the bottom box where you list the URL prefix, make sure /public_html does NOT follow your website address. Also, in your connection...try using 66.11.163.212 instead of localhost. I'm not sure if that IP is specific to my server...or if it's a general TCH IP.
Let me know if any of that works, and if not, I'll look into it a little further.
Tracy
Natural Images Photography
<A HREF="ymsgr:sendIM?natimage72"><IMG SRC="http://www.tchstatus.com:8080/yahoo/natimage72"></a>
#4
Posted 29 October 2003 - 09:37 PM
Part of the problem is the DW mysql/php setup sucks. The DW ftp sucks. But since it runs on another server logic tells me it is a TCH problem.
Anyone have any suggestions before I shop for another host? Too bad because for the price I think these guys are a good hosting company.
#5
Posted 29 October 2003 - 11:34 PM
Quote
Check the URL Prefix in the Site Definition
for example: http://www.yoursite.com/ is the correct setting
General Manager
TotalChoice Hosting, L.L.C.
dick@totalchoicehosting.com
Web Hosting by Total Choice Web Hosting - Round-the-Clock Server Monitoring
Successful people do the things that unsuccessful people don’t want to do.
#6
Posted 30 October 2003 - 04:55 AM
#7
Posted 30 October 2003 - 08:13 AM
A while back I was in your shoes! I too thought the problem was with TCH. I was wrong. Give us a chance in the forum to figure out your problem.
You are correct about DW configurations for database connections and ftp...they do suck. The problem is trying to figure out what info will allow DW to talk to the particular host you use. The information is likely to change with a different host. Thus, the info you would use with the current host where your database sits will likely be quite different from the info you need to make it work with TCH.
If you would like some specific help, email or PM me and I will give it my best shot. I got my connections to work...we should be able to get yours to work as well.
Hang in there!
Natural Images Photography
<A HREF="ymsgr:sendIM?natimage72"><IMG SRC="http://www.tchstatus.com:8080/yahoo/natimage72"></a>
#8
Posted 30 October 2003 - 11:25 AM
Remote Info
FTP Host: 69.50.193.12
Host Directory: /public_html/
Login: netgif
Password: xxxxx
Use Passive FTP is slected
I can successfully test this configuration.
Testing Server
Server Model: PHP/MySql
FTP Host: 69.50.193.12
Host Directory: /public_html/
Login: netgif
Password: xxxxx
Use Passive FTP is slected
URL Prefix: http://net-gift-shop.com/
I can successfully test this configuration.
Database
Connection Name: totalchoice
MySQL Server: 69.50.193.12
UserName: netgif_rob
Password: xxxxx - As set in CPanel
Database: netgif_test
When I test this connection I received "1045 Access denied for user: 'netgif_rob@server42.totalchoicehosting.com' (Using password: YES)
I have Access Hosts set to %
And now that I have written all this out - adding 69.50.193.12 to hosts works.
I guess % doesn't mean wildcard. After all that it was THAT easy to fix???
#9
Posted 30 October 2003 - 02:34 PM
Quote
woooot ...laughing as I remember exactly how I felt...
I believe that % does mean wildcard...but...well...I don't know how all that stuff works. I'm pretty sure I had to do the same thing that you just did!
Glad you got it fixed. Sometimes just talking (or writing) through something helps fix the problem!
Tracy
Natural Images Photography
<A HREF="ymsgr:sendIM?natimage72"><IMG SRC="http://www.tchstatus.com:8080/yahoo/natimage72"></a>
#10
Posted 30 October 2003 - 10:57 PM
#11
Posted 31 October 2003 - 01:27 AM
Quote
I don't see how that can be, I have NO problems connecting to my databases with DW.
General Manager
TotalChoice Hosting, L.L.C.
dick@totalchoicehosting.com
Web Hosting by Total Choice Web Hosting - Round-the-Clock Server Monitoring
Successful people do the things that unsuccessful people don’t want to do.
#12
Posted 31 October 2003 - 05:19 AM
Rocket Rob, let me explain a few things.
1) Your username. When you sign up, we take the first couple of characters from your domain name and your own name if required, and if there is a - in the domain name, then unfortunately, because its all one big automated system, cpanel accepts it to be a valid username, when in fact, mysql and cpanel can't work together if a - is present. Because it is all automated, we have no way of changing it until after the event. Clients just need to drop a help desk ticket in and the job is done.
2) The tutorial for connecting to a database works for 99% of our client database. Just because you can connect to one, does not mean that you can connect to every other database, nor does it suggest that any part of the line, whether its you, us or the connection in between is wrong.
3) We treat all clients the same. Whether they pay us $4 a month or $300 a month, we treat each client as the same, and give each client exactly the same treatment. This, in my humble opinion is how all businesses should treat clients.
I am sorry if so far you have had an unhappy experience with totalchoice web hosting and I can only hope things improve between us Thumbs Up
Jim
#13
Posted 31 October 2003 - 09:12 AM
What ever you do don't go to xxxx, they SUCK!!
Hi, Please do not put down other hosters in these forums. We are not out to tell tales or slander other companies Jim
This post has been edited by Jimuni: 31 October 2003 - 09:25 AM
#14
Posted 08 December 2003 - 03:16 AM
Thank you for the Q & As in here.
Mark
#15
Posted 08 December 2003 - 10:49 AM
and also
and your new home.
hope you will be a regular here.
if you need anything, just ask.
Forum Moderator
TotalChoice Hosting, L.L.C.
Web Hosting by Total Choice Web Hosting - For Your Family - Web Hosting Family!
Any links or suggestions for third party software/sites should be used at your own risk.
My opinions and recommendations are not necessarily those of TCH and TCH is not responsible.
I am a Forum Moderator and a volunteer. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related questions. Should you need assistance in these areas, please contact our Help Desk.
treasure your pets
The Turtle says "A little knowledge is a dangerous thing,
so keep learning!"
#16
Posted 11 March 2004 - 09:10 PM
It turns out it's not that bad.
Make sure you setup all your UN/PW info in Site Definition.
Local Info:
---------------
Site Name: ?
Local Root Folder: ?
etc, etc...
Remote Info:
---------------
Access: FTP
FTP Host: ftp.******
Host Directory: /www/
Login: username
Password: ?
Testing Server:
-----------------
Server Model: PHP MySQL
Access: FTP
FTP Host: ftp.******
Host Dir: /www/
Login: username
Pass: ?
URL Prefix: http://www.******/
That's it for that area. Now go to create a record set in your document.
Click on 'Define...', then 'New'.
MySQL Connection:
-----------------------
Connection Name: whatever you wanna call this connection.
MySQL Server: www.******
UserName: username_username (we'll get to this in a second.)
Password: ???
OK now if you click 'Select', you should receive a list of the DBs under your account. But this isn't going to work unless you do a few things in CPanel first. (I had got to about this point when I gave up.
Go into CPanel...
Go to MySQL Databases...
Under 'Access Hosts', either add % or your IP. I've tried 68.% and 68.%.%.% for example, and neither work.
Next, right above 'Access Hosts', is Users:. If you haven't added one yet, add one now. It is required for all this to work.
Now you've added a user and an access host, so the last thing to do is give the new user you created access to your databases. (I'm assuming you have databases already created.)
At the top of the page, you'll see a form with a bunch of check boxes. (Privileges:) Just leave "ALL" checked or check off whatever type of access you want to give to your user. Then click the submit button 'ADD USER TO DB'. The next screen will say, 'Account added to Access List', click 'Go Back', and you should see that the top half looks a little bit different now.
It will say...
Users in [yourDBname]
username_username (Privileges: ALL PRIVILEGES) [delete]
Connection Strings
.... etc etc.. (it will list PHP and Perl DB connection string for you to use.)
But you don't need none of that, because Dreamweaver will do your dirty work for you now.
Now back to Dreamweaver MySQL Connection settings....
MySQL Connection:
-----------------------
Connection Name: whatever you wanna call this connection.
MySQL Server: www.******
UserName: username_username (the username you created.)
Password: ???
Click on 'Select' and you should see your Database(s). Select it and your good to go.
I'm not giving any warranties, but this worked for me. And I'm able to duplicate it for the rest of my resold accounts with ease. It took me having to submit a help desk ticket to figure out that you have to "add the user to the DB.".
Hope this helps.. Good luck Thumbs Up
Rock Sign
#17
Posted 11 March 2004 - 09:12 PM
#19
Posted 15 March 2004 - 07:54 PM
Okay you gurus I need help connecting from Dreamweaver MX 2004 to MySQL.
After reading this thread for a couple days now I believe I have done all the pre-requisites of creating a database with a table, creating a user with all privileges (and a password) and my "Access Hosts" include both "localhost" and "%".
MySQL Connection looks like:
Connection Name: testing123
MySQL server...: www.snibor.net
User name......: testuser
Password.......: ***********
Database.......:
When I click the select ICON i get the following error:
1045 Access denied for user: 'testuser@server38.totalchoicehosting.com' (Using password:YES)
In a previous posting (the 8th posting in this thread) rocket_rob had the same error. His problem was apparently solved by adding 69.50.193.12 to his "Access Hosts" via CPanel.
I don't know what IP Address to add to my Access Hosts??
Interestingly, when I tried the following MySQL connection:
Connection Name: testing123
MySQL server...: www.snibor.net
User name......: sniborn_testuser (this is how the ID appears in CPanel)
Password.......: ***********
Database.......:
I do not get an error, rather I am presented with a "select database" dialog box, but it is empty, no databases displayed to select.
Regardless, I honestly thought I could figure this out from the wealth of information in this thread but it's just evading me. Thanks ahead of time for any help you can provide.
"If you're not making mistakes then you're not doing anything."
#20
Posted 15 March 2004 - 08:19 PM
After re-visiting each step I claimed to have completed (in my prior posting), I discovered the access priveledges had not been set for the user. I was certain I had set them, but they were not established as I had thought.
Thanks again for a great thread that helped me get connected!
"If you're not making mistakes then you're not doing anything."
#21
Posted 06 December 2005 - 03:12 PM
tr4nc3, on Mar 12 2004, 10:10 AM, said:
Go to MySQL Databases...
Under 'Access Hosts', either add % or your IP. I've tried 68.% and 68.%.%.% for example, and neither work.
Next, right above 'Access Hosts', is Users:. If you haven't added one yet, add one now. It is required for all this to work.
Now you've added a user and an access host, so the last thing to do is give the new user you created access to your databases. (I'm assuming you have databases already created.)
At the top of the page, you'll see a form with a bunch of check boxes. (Privileges:) Just leave "ALL" checked or check off whatever type of access you want to give to your user. Then click the submit button 'ADD USER TO DB'. The next screen will say, 'Account added to Access List', click 'Go Back', and you should see that the top half looks a little bit different now.
.....
I got lost somewhere here.
I think I might look like an idiot by asking
but what is the CPanel you're referring to here??????
I can't seem to find it anywhere and I'm about to go crazy.
#22
Posted 06 December 2005 - 03:45 PM
cPanel is the site adminstration panel for your site. Same place you create email addresses, subdomains, etc...
Are you hosted here?
Lead Forum Moderator
TotalChoice Hosting, L.L.C.
Webhosting by Total Choice Web Hosting - General Support Forum
I am the Lead Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.

Help














