CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 DB connection problem

Print topic Send  topic

Author Message
rbaldwin

Posts: 172
Posted: 06/13/2011, 2:21 PM

I'm an experienced codeCharge user vb.net, but this is my first php/mysql project.
i've built my small project but i'm having trouble connecting to my database.
my database is mySQL
my connection string is:
Driver={MySQL ODBC 5.1 Driver};Server=127.0.0.1;Uid=rod;Pwd=12345678;Database=myBooks;

in design mode i see all my tables

i've published my site to my local windows 7 box

i'm getting this error when i browse to a page
Database error: cannot connect to Database No connection could be made because the target machine actively refused it.
MySQL Error
Session halted.

a small test page i built in notepad connects to the db using the same connection string, and lists rows from a table.

Any suggestions would be much appreciated.
View profile  Send private message
jjrjr2


Posts: 131
Posted: 06/13/2011, 9:21 PM

Hi

You are setting up the server db connection wrong for php I think.

This tutorial might help... It focuses on getting CCS up & running with a PHP project.

http://ccselite.com/media_library.php




_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
Real Web Development At: http://RealWebDevelopment.us
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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