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.
|
 |
 |
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 |
 |
 |
|