close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Security Assist SQL problem

Thread began 4/13/2011 3:21 pm by webmaster422987 | Last modified 5/29/2014 4:33 pm by Jason Byrnes | 4839 views | 22 replies |

webmaster422987

Security Assist SQL problem

Hello,

I have set up a database using MySQL for password protecting three different pages of my website. I haven't gone live with my website yet. In Dreamweaver CS5 when I test the live view of my website, it operates like it should in requiring me to type in a username and password before accessing the website. However, when I test the website on a different computer using a testing server, it gives me the following error message:

Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /data/17/1/17/31/1832194/user/1987704/htdocs/htdocs/Connections/NWRAINBOW.php on line 9

Fatal error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /data/17/1/17/31/1832194/user/1987704/htdocs/htdocs/Connections/NWRAINBOW.php on line 9

What can I do to correct this?

Thanks for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

In the connection file, what did you use for the MySQL Address?

If you used localhost, try using the loop back IP address instead:
127.0.0.1

Sign in to reply to this post

webmaster422987

SQL problem

I am finally ready to launch my website but still need to correct this problem. I tried to find a connections file and perhaps I am looking in the wrong place.

I am using Xampp and Dreamweaver CS5. I thought I had everything working correctly but can't seem to find anything that gives me options in terms of Connections. I am using the testing/remote server connections inside Dreamweaver and while it lets me choose MySQL, it doesn't let me edit any settings for it.

Perhaps I am in the wrong place??

Thank you!!

Sign in to reply to this post

Jason ByrnesWebAssist

see the "Creating your database connection in Dreamweaver " tutorial on the learning resources page:
resources.php?utm_campaign=Forum_header&utm_medium=Forums&utm_source=WebAssistForums

Sign in to reply to this post

webmaster422987

SQL Problem

Thank you for re-directing my brain. I remember that connection set up now that I read the tutorial. I appreciate the help and will see if that works tonight!

Sign in to reply to this post

Jason ByrnesWebAssist

no worries.

Sign in to reply to this post

webmaster422987

SQL problem

So I tried to set up my MySQL connection in the database section. I was able to input all the information until I hit select next to database at the bottom of the box.

Then I receive this error:
MySQL Error #2013. Lost connection to MySQL server at 'reading initial communication packet', system error: 111.

Help? I have no idea what this means...

Sign in to reply to this post

Jason ByrnesWebAssist

where you are entering the connection info for the remote server, you will not be able to select the database, you will need to log into the remote server and make note of the database name, then enter the database name manually.

Sign in to reply to this post

webmaster422987

SQL Problem

Thank you!! I will try that tonight.

Sign in to reply to this post

webmaster422987

SQL problem

So I tried to follow your solution and am still receiving errors. It keeps referring to a nwrainbow.php that I have never had created and do not currently have either.

I have included some information - this is the error message and I have attached a screen of my myPHPadmin.

MySQL Connection.
Connection Name: Corries
MySQL Server: 127.0.0.1
User name: root
Password: I assigned in system
Database: passwords (this is what they are called in the MyPHPadmin - not sure what is right but I have tried to use passwords, corrie passwords, and corrie in this field to no avail)

This is the error message I receive when trying to access this page after I have posted on my remote server.
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /data/17/1/17/31/1832194/user/1987704/htdocs/htdocs/Connections/NWRAINBOW.php on line 9

Fatal error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /data/17/1/17/31/1832194/user/1987704/htdocs/htdocs/Connections/NWRAINBOW.php on line 9

I really need to figure out what is the hangup in my programming in order to go live with the website this weekend. Any help you can provide would be great. Thanks!

Attached Files
SQL issues.pdf
Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...