CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Getting Connection Errors (Resolved)

Print topic Send  topic

Author Message
ab5ni


Posts: 177
Posted: 07/05/2011, 11:24 AM

Guys,

I accidentally deleted my project connection. I rebuilt the connection, and now all my pages are broken, even though I republished the entire project using the same connection name. After login, I have the code going to a specific page, which is basically a menu-builder page that could access the other pages I'm working on currently. This page is busted now, and I get the following error:

Database error: cannot connect to Database Lost connection to MySQL server at 'reading initial communication packet', system error: 104 MySQL Error Session halted.


I re-wrote the menu page, made a simple menu, and now the simple menu comes up fine; however, if I try to add another page to the menu, I get the aforementioned database error yet again. What this is telling me is that my project has become corrupted because of the accidental deletion. Could doing such a simple mistake completely wreck an entire project?! Am I right here, or is there a way to salvage this situation. Please Help!

TIA

Randy

_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!


View profile  Send private message
tfertil

Posts: 43
Posted: 07/05/2011, 2:44 PM

Hi ab5ni,

Have you tried to connect to you database using a simple, direct PHP connection?

If not, here's the code for you to try:

  
<?php  
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');  
if (!$link) {  
    die('Could not connect: ' . mysql_error());  
}  
echo 'Connected successfully';  
mysql_close($link);  
?>  

Replace the values of localhost, mysql_user and mysql_password for your values, save as a PHP file on your web folder and open the file.

Let us know what happen...

Regards,
View profile  Send private message
ab5ni


Posts: 177
Posted: 07/05/2011, 10:38 PM

Yeah, I tried that, and it works fine. If I make a new page using the new project connection, it works. It's the old, original pages that used the original project connection that doesn't work. Why this is happening is beyond me. It shouldn't, and most certainly shouldn't corrupt and entire project.

Randy

_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!


View profile  Send private message
ab5ni


Posts: 177
Posted: 07/06/2011, 9:31 AM

I typed in my hidden password incorrectly. DUH :-D

_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!


View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.