Forum Moderators: coopster

Message Too Old, No Replies

WAMP on CD

wamp on cd

         

stualk

9:30 am on Apr 17, 2007 (gmt 0)

10+ Year Member



Hello,

Has anyone ever used WAMP on CD? I imagine it works really well but i've got a db connectivity issue. I have copied the database to the /database folder as a .sql file and used the following code to connect to the db from the relevant pages:

$server = "localhost:8182";
$user = "";
$pass = "";
$db = "db_name_was_here";

The error i'm getting when trying to view the db is "No Database Selected". Has anyone ever come accros this problem before or can anyone suggest a way around this?

eelixduppy

10:57 am on Apr 17, 2007 (gmt 0)



Welcome to WebmasterWorld!

I've used server2go [server2go-web.de] before and didn't have any problems with it. The error you are getting means that the database isn't properly selected. This could mean that you have an error with the server setup itself, or you have the wrong db name, etc... I'd read the documentation for whatever you are using to make sure you are doing everything correctly. If that is so, check spelling. Most of these portable servers' sites have forums. Maybe you'll be better off asking them how to connect to a database.

Best of luck!