How to skip nopcommerce installation? - nopcommerce

I have deployed my project on the server and also exported the database on the server.
Now I would like to skip the installation. How is it possible?
I tried to put the 'Settings.txt' file in App_Data and also the 'InstalledPlugins.txt', but it didn't help.

'Settings.txt' needs to be updated with new SQL Database in your PROD server. Just copying over will not help. If you just copy over, then NopCommerce from PROD will look for Database in your local or dev PC which is not accessible (in most cases)
'Settings.txt' stores db connection as ADO.Net connection string. so you can edit easily.

Related

existing umbraco cms set up in local server

I am completely new with the umbraco CMS and one of my client want to make some changes on his umbraco CMS web site. So i have downloaded the umbraco CMS projects files and database from the server and i need to configure it on my local server. I am using windows 10 OS. I can install a fresh umbraco cms in the local server. But When i try to run the existing in local server, its asking me for install the fresh umbraco CMS.Can anyone help me on sort out this issue?
Note : I don't have changed the any configurations on the files. Just simply running the project with Microsoft WebMatrix app. Please help me with the database and other configuration settings also.
Aby help will be really appreciated...
It sounds like the Umbraco installation is assuming it is a new installation and then creates a new database for you.
You need to download the website files directly from the server and place those in a folder which can be served by a webserver on your local machine. Then you need to get a backup of the database on the server and restore this on a SQL server on your local machine.
When this is done, you need to make sure the connectionstring in the web.config of the site is set up correct to match where you have restored the database on your local SQL server. Search for umbracoDbDsn and make sure the server name, credentials and database name is correct.
When this is done, you should be able to start up the site and hopefully it will run just as it did on the server.

Restore Oracle database on a different Pc

I have been using Oracle XE and has a backup of the app folder containing all the database Objects I need to restore this database on to a different Machine Bu I cant find a way to do this.
I have tried to reinstall Oracle on the new PC and replace the app folder of the current Installation but the database and restarting the services but I am getting the error that the network adapter does not know the sid given.
How can I do this and is it Possible?
You need to replace only the oradata folder.

How to extract the database file when using SQLExpress in Visual Studio

I have made my database in SQLExpress and its a master database . I would like to create a CD for my project so need the database file. I am not able to find that file please suggest a solution
thanks!
Your database files would be in the App_Data folder by default if you are using SQL-Express provided with Visual Studio.
You can generate an SQL script of your database which can be used to re-create it in different db server by running the script again. For this right-click on the database in the Server Explorer and select Publish to Provider.
You'll need the .mdf and .ldf in the SQL Server installation directory, but if you've created everything in the master database, I'd recommend creating a different database and moving everything there instead. The master db shouldn't be used for stuff like that.

Where to start when uploading a SQL Server database to a web server

Here's another question on my lips.
My website uses a database which was created in SQL Server 2008 R2 Enterprise Edition. Where do I start when I plan to upload the database to the web server? My Website will require this database. Should I send the Scripts which created the database to the Staff of the web server so they can Recreate my database, or should I detach my database and place it in the App Data folder, followed by an update of my Connection strings to reference the detached database?
Another thing I fear is the Database version. Will my Database connection break on the web server because of the "Version of database is 655 and cannot be downgraded to 612" Error? and If yes, How would I prevent that?
The Best way would be to
1: Send them the scripts, let them run it on their side, they should then be able to provide you with server name, database name user id etc.
2: Create a .bak backup file of the database and send that to them and ask them to restore it for you, this way you save a lot of the hassle of creating scripts and you also ensure that the database is like you want it and you know they haven't made a mess of restoring the scripts.
You can also ask them if they don't have some sort of management console where you can upload the database yourself
My suggestion would be to create a back up of the SQL database, and give that to the web server admin to restore on their server. This will mean that you can guarantee that you will get no problems with the structure, and you should simply have to change the connection string in your Web.Config (assuming that you have always created your connections in code based on the connection string in the web.config), to contain a user name and password that your web server admin gives you (if it's a back up and restore of your db, assuming you use SQL authentication, the new db on the web server will have the same users anyway).
Some options;
If you have access via Management Studio just use the import/export tools or the Copy Database Wizard
If the remote sql server can read from one of the site directories you have access to upload a .bak backup and restore, or upload the database files proper and use one of the sp_attach* procedures
Script the database (including data) upload the individual files & create a quick and dirty script that will execute them.

Using database on another development machine

I am developing an ASP.NET website. I wanted to shift whole of my work to another PC of mine. I copied the website to the other PC>Open>Create ASP.NET folder>App_Data
and pasted the database.mdf and database.ldf files there. I was getting some exception when I was trying to run the website as it showed the "could not open the connection from con.open()". Is there some other step too that I am missing?
Sql Server database files are not like any simple html files that can be copied between machines. You need to make sure that the database that is getting served up: e.g. there is a Sql Server instance running that can present the database to your web application.
Here's an article on how to attach an mdf file to a Sql Server.
You need to attach the mdf and ldf files to the sql server instance on the target machine. You may need to adjust your connection string as well, unless you used a local name reference like "." for the data source.
What is your connection string? Chances are the path in the connection string has the local path to the database file on your original development machine.

Resources