Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...cancan't find my database on localhost
Previous
 
Next
New Post
1/10/2011 9:16 AM
 
Hi

This is probably a stupid question but before when installed dotnetnuke on my localhost it asked my for a database username and password which i logged in to sql server management to see the database.

Now i have installed dotnetnuke and everything is working as it should but i log into sql server management with 'sa' and my password and i can't find the database, i've looked everywhere. The web config files i have been using in the past have a connection string such as:

<!-- Connection String for SQL Server 2005/2008-->
    <add name="SiteSqlServer" connectionString="Server=   db2.3essentials.com;Database=26521_elena;uid=cw****;pwd=****************;" providerName="System.Data.SqlClient" />
  </connectionStrings>

but with the new installation i'm getting the connection string

<!-- Connection String for SQL Server 2005/2008 Express -->
    <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />

is this pointing to the database.mdf file in App_Data folder? so how do you modify the data and how would do you install the data onto a live server, any help or resources would be appreciated, this has thrown me abit.
 
New Post
1/10/2011 11:42 AM
 
There are 2 points into the web.config file where you have set the connection string.  To use backwards compatible modules that still used lower package manifestes as the DNN version you are using (e.g. you want use a module 4.x.x on a DNN 5.x.x) you need the 2nd connection string!  So you must have set both connection strings successfully.

On your sample I so you ahve empty types on the connectionString properties, that makes isses to connect to the database.

Your wrong sample:
Server=   db2.3essentials.com

Must be:

Server=db2.3essentials.com

Basicly you could use both connection strings, the file based connection string only could be used if you have installed a SQL Server on the same maschine as the IIS is installed. The file based connection string also used the Integrated Security.  File based connection only supported one connection to the database, which mean that you could not connect to the database with SQL Management Studio if your DNN is online!  The database file is located on the App_Date folder.

For using a SQL Server that is installed on a 2nd maschine or you want use a webfarme you have to use the SQL Server connection string.  Personaly I use this methode, so I could also work on the database on a running DNN instance.

If you want connect with SQL Management Studio to your database and you use the "db2.3essentials.com" you have also to connect to this server if it is not your local server.

Hope this helps to solve your issue.
 
New Post
1/10/2011 3:40 PM
 
Hi Matthias,

Thanks for your reply, sorry but i dont think i explained myself too well,  the config file with the db2.3essentials.com connection string is a live working server, this is how i was use to working with dotnetnuke, i would work on my localhost and export a database .bak file and upload it to my live server with the correct connection string.

The problem i'm having is now i've installed dotnetnuke on my localhost and it has used the 2nd connection string, the site is connected to a database as i can update and add through the CMS but i just can't find the database to export a bak file of it.
 
New Post
1/10/2011 5:39 PM
 
Currently, your localhost install of DotNetNuke is using the Database.mdf file located in the App_Data folder. It will not be accessible in MS SQL Server Management Studio without attaching to the file.

Please see the following older, but still valid blog entry concerning how to attach to the Database.mdf file and in particular note the issues that will require you to modify your web.config's connection strings (2) after attaching to the database file outside of DotNetNuke:

http://www.dotnetnuke.com/Community/B...

I recommend (except for quick test installs of DotNetNuke on localhost) always creating a blank database manually (usually with username/password credentials created for SQL Server Authentication rather than Windows Authentication)  then supplying its connection information to the install wizard when installing DotNetNuke.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/12/2011 8:10 PM
 
cw6365 wrote:
Hi Matthias,

Thanks for your reply, sorry but i dont think i explained myself too well,  the config file with the db2.3essentials.com connection string is a live working server, this is how i was use to working with dotnetnuke, i would work on my localhost and export a database .bak file and upload it to my live server with the correct connection string.

The problem i'm having is now i've installed dotnetnuke on my localhost and it has used the 2nd connection string, the site is connected to a database as i can update and add through the CMS but i just can't find the database to export a bak file of it.

 
So if you want do make a database backup you have to use the SQL Management Studio (Express) and connect to your local SQL Server as localhost or localhost/instancename (localhost\SQLExpress), as 'Administrator' or 'sa' user.  Then you should be able to find your database on the SSMS and making a backup.

Notice please, that if you restore this database for a other DNN instance - you have to use the same web.config file and DNN Version you have used for create the database, about the encryption of the database! 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...cancan't find my database on localhost


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out