head pic db4free graphic Menu pic db4free
 
















It is currently Mon 06 Sep, 2010 17:50

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Connection String VS
PostPosted: Thu 12 Nov, 2009 16:59 
Offline

Joined: Thu 12 Nov, 2009 16:55
Posts: 3
I'm trying to connect my Visual Studio application with my db4free database, using a connection string in app.config.

I used the following Connection String:
Quote:
<add name="DBconnection" connectionString="server=db4free.net;user id=<USERNAME>;Password=<PASSWORD>;persist security info=True;database=dvdlijst" />


When i debug the application, I get the following error:
Quote:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)


I already downloaded the MySQL Connector and added a reference to it in my application..

What am I doing wrong??


Top
 Profile  
 
 Post subject: Re: Connection String VS
PostPosted: Thu 12 Nov, 2009 21:49 
Offline
Administrator
User avatar

Joined: Tue 07 Jun, 2005 17:34
Posts: 436
Location: Heidenreichstein, Austria
Hi,

can you connect through other means, like another MySQL Client (e.g. MySQL Query Browser) from the same host on which you run your application? It may be a permission issue, unless you set the allowable host to "%" for your account.

Cheers,
Markus

_________________
--- mpopp.net --- http://www.mpopp.net ---


Top
 Profile  
 
 Post subject: Re: Connection String VS
PostPosted: Fri 13 Nov, 2009 16:00 
Offline

Joined: Thu 12 Nov, 2009 16:55
Posts: 3
In phpMyAdmin I got the following messages at the bottom:
Quote:
The additional features for working with linked tables have been deactivated. To find out why click here.

Quote:
Your PHP parameter session.gc_maxlifetime is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.

But I can exucute queries in phpMyAdmin on my database.

When I use MySQL Administrator and I connect to server: db4free.net with my username/password and go to 'User Administration', I got the following message:
Quote:
A MySQL error was encountered. The message is:
Could not fetch user names.
The following error occured: SELECT command denied to user 'snowboarder'@77.249.232.238' for table 'user' (1142)


When I signed up for database, I changed nothing to allowable hosts.. so it should be '%'..

Any solutions for this?


Top
 Profile  
 
 Post subject: Re: Connection String VS
PostPosted: Mon 16 Nov, 2009 09:17 
Offline

Joined: Thu 12 Nov, 2009 16:55
Posts: 3
Nvm.. I already found the problem
My connection string in app.config didn't make any sense -.-


Top
 Profile  
 
 Post subject: Re: Connection String VS
PostPosted: Tue 17 Nov, 2009 20:49 
Offline
Administrator
User avatar

Joined: Tue 07 Jun, 2005 17:34
Posts: 436
Location: Heidenreichstein, Austria
Nice to hear it works :).

Cheers,
Markus

_________________
--- mpopp.net --- http://www.mpopp.net ---


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group