how to Export wordpress database from web matrix - database

I have WebMatrix version 1. I made a WordPress site and now it's time to publish it. From what I've read, the best option is to publish the site from web matrix using the web deploy option. But my hosting (godaddy) doesn't support this feature. So I have to upload my site via FTP.
The problem is that I don't know how to export the databse from my webmatrix to my hosting.
From reading some posts, I think the best option is to use phpMyAdmin, but I couldn't install it on my computer.
Is that the easiest way to expot my database?
And if that is the best option, can anybody explain me how to install phpMyAdmin on my computer.
Thanks a lot
Gonzalo

Use the plugin http://wordpress.org/extend/plugins/portable-phpmyadmin/ to run phpmyadmin and export the database without actually installing phpmyadmin on your PC.

Related

How can I connect my SQL Server database that is placed on another server using API or Web Service in MVC to website that is on a different server

I uploaded my website to GoDaddy web hosting and the database is placed on another server.
I want to create an API - either REST or SOAP - to connect my web site with my SQL Server database.
I need help - how can I create an API in ASP.NET MVC 5 so that I can connect my database with my web site? Kindly provide me with a link or code so that I can solve my issue.
I have never worked on API before - any help will be much appreciated.
ASP.NET MVC is now old school. Try ASP.NET Core.
You need to design and develop an N-Layered application: Data, Service and UI.
It doesn't matter where the database server is sitting, as long as your WebAPI can connect to it.
I suggest you build a restful web api with asp.net core :
https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-3.1&tabs=visual-studio
Put your db connection string in the app settings file.
Although you use other database server, it doesn't matter. You just need to make sure you check your connection string and point it to your database server. For publishing method, it is same, you can use FTP or Visual Studio
Please open your project with Visual Studio tool
On the Solution Explorer windows (which is normally located on the top right hand corner of the VS tool), right click your project and select Publish
Please kindly publish it to a local folder, such as C:\Project
Please just upload whatever files/folders you see on C:\Project to your server via FTP
If you have any problems, you can contact your support team
You can get the Reference from
Sample_WebAPI_Project ,
instead of Using List created you can create Database Connection and get data from Database

How to deploy database on linux

I have a small asp.net core website that I push to my server via jenkins. Jenkins does git checkout and then dotnet restore and dotnet run. It works for the website, but I added entity framework and I'm a little confused. How exactly do I move my local database to the server? Or should I create one on the server and then reference it?
I have one mssql database on (localdb)\MSSQLLocalDB, but when I run the server and try to go to a page which gets data from the database I get 500 Internal Server Error.
I would like to have one local db for testing and one on the server, but I just can't wrap my head around all of this.
Well in development, you should write a init script for your database. This will create all the required stuff your application needs.
So in linux...
Install the MySQL, get the users set up, and init the database.
In your application...
Provide the connection string for the DB installed in Linux.
I am not running my app in c# but this is similar to my node app. That is what I do. I develop in windows with Postgres. Then my prod is on a GoDaddy Linux cloud server and I have Postgres installed in that. When I do my git pull for the latest, I don't have to change much because of the .env file for my environment variables.

How can I browse my Heroku database?

Now that I've deployed my webapp to Heroku, how would I be able to browse the database as it's altered over time?
Try heroku pg:psql. For instructions for how to do this, see this.
If you want to browse your Heroku PostgreSQL database using a browser there is now a free tool for that called Heroku Data Explorer:
https://datazenit.com/heroku-data-explorer.html
It uses Heroku API in real time so your data/credentials stay secure and private. Also it has excellent performance because Heroku local network is used for database connections.
Download PgAdmin 4 and configure your heroku database credentials. Right click on Servers link and choose create >> server. On General tab give Name as per your wish and on Connection tab enter Hostname/address, address, Maintenance database (database name), Username and password which is given in Heroku dabase credentials page. And you will be able to access heroku dadabase on UI free of cost.
I use a tool called Adminer to connect to the DB. The problem is that Heroku will change the credentials for the DB occasionally. You can find them by visiting the Resources tab on your Dashboard then clicking on the DB you use.
It will take you to the Addons page in another tab. Click on the Settings tab then View Credentials.
Using these credentials, you can use Adminer to login to the DB.
Install Beekeeper Studio. Connect to POSTGRES_URL of Heroku with "SSL" enabled.
Easy to view

Moving of a dyamic web project with database

I have created a dynamic web project in Eclipse. The project creates a database within it. Testing it on a local machine having Tomcat server works fine. I want to deploy this project with the database to another system running Tomcat. How to accomplish this task? Internet has been of little help to me.
For example a web project Students created. A database with table named StudentsOfStdV created. This database has some data. For testing purposes I want to export the .war file and the database along with it to a different machine running a server. How to do it?
You need to Export War from Eclipse and deploy it on Tomcat.
Read tutorials on
Web application Deployment Guide: http://tomcat.apache.org/tomcat-4.0-doc/appdev/deployment.html
How to setup Tomcat: http://www.coreservlets.com/Apache-Tomcat-Tutorial/
Export War from eclipse: http://www.java-tips.org/other-api-tips/eclipse/how-to-make-war-file-in-eclipse.html
EDIT:
Database does not go along with .war. The database server has to be installed first and then You can create it on first run or manually.

Migrating dotnetnuke from development to test server

I am a newbie with DotNetNuke and have been stumbling on how to deploy from the development server to the deployment server. For starters my development and deployment servers are one and the same machine. Here are the steps that I did:
DNN Setup
Downloaded DNN using WebMatrix.
Launched DNN and proceeded with the installation wizard, which is basically just testing the environment and then creating the DNN database.
After the wizard's installation launching DNN will now proceed to the Getting Started page
Added "localhost/dnn" in the site alias list
Moving to ISS
In IIS I added application (folder) DNN in the web root
I copied all the files from the original webmatrix path to the dnn folder in c:\inetpub\webroot making sure that the file/folder hierarchies are the same
Result:
When launching DNN using my browser I am directed to the installation wizard page instead of the Getting Started page. What am I missing?
Thanks!
Confirm that the permissions on the folder containing DNN are the same on your test server as they are on your development server. (I give Network Service read/write and IUsr Read/Execute)
Confirm that the application pool running your application has the proper identity (Network Service is suggested) and is running the proper .NET Framework version; based upon your question, I think you are set on this.
Gain access to your web.config file. You will see a ConnectionStrings section. You probably need to update the connection strings.
If your test server runs off of a different database than your dev server, figure out the connection string of your test server and update your connection string accordingly
You may be able to restore a .BAK file of your DB to your test server
If you do this, you will probably need to (in SSMS) edit your Portal Alias table to include the host name that you are using in your test server environment. Examples: Maybe you access the site via localhost/ on your dev environment, but you access to test site via test.Ronald.com? test.Ronald.com would be your PortalAlias
If your test server runs off the same database server as your dev server, it sounds like you need to open up access in firewalls so that your test server has connectivity to your dev database
A word of advice
Once you get it running, you will be making changes to each database separately (assuming your test site and dev site use different DB Servers). This sync issue can be a royal pain with DNN, as your page structures, module assignments, html module contents, installed modules/extensions will get out of sync. While restoring backups is nice, it is not a very good long-term solution. I recommend database-syncing tools
The problem is most likely a problem with DNN not being able to find the Database. If it can't find the database, it will run the wizard in order to create one.

Resources