Backup MySQL database in ASP.NET MVC3 - mysql

How do i backup MySql database from ASP.NET MVC3. The project is located in a local network server.
Thanks

You can use MySqlBackup.NET to perform the task
http://mysqlbackupnet.codeplex.com/
I'm one of the author of this project.

Related

ASP.NET Core 6 Web API : update database command on deployment

I am new to ASP.NET Core and using Entity Framework 6.
I have created a Web API using MySql. On development, I have executed add migrations and update-database command.
Now, I have published the Web API and I have to deploy it on a server. The server doesn't have development environment. I want to update the production database. How can I do this?`
I don't understand this : "The server doesn't have development environment."
You only have to replace Database ConnectionString of your project with ConnectionString of server, and then use update-database to update database.

how to publish vb.net project with MySQL database on another computer

I have an application using vb.net with MYSQL database in visual studio 2015 now i need to create a installation package to deploy the application to client computer.
I don't have any idea how to do this please anyone give tips how i can do this, im new with MYSQL.
It depends, what technology are you using? If you are using entity framework you should have a .config file in your project, usually it's called app.Config, you can specify your <connectionStrings> there. Else if you use SqlConnection, you'll have to change that string.

Azure sql - how to view table data (.net backend)

I have just started using Azure and i created a mobile app , setup a database and chose a .net backend .
I got a preconfigured backend folder which i downloaded and then published to my azure server.
However i have no idea how to verify in the azure portal if its working.
I can see my databases but not the actual tables and content .
I'm using .net backend so easytables are not supported .
Does Azure has something like phpmyadmin that lets me check the content of the database while i'm programming ?
Thanks
You can connect to the database with the usual Sql Server Management Studio tool, or directly from Visual studio using Server/Cloud explorer. If its a SQL Azure database you're connecting to, you need first to find the management blade in the portal for the database and then add your client IP address to the firewall settings for that database server for you to be able to connect from your desktop.
ps. tagged with "MySQL" but title refers to Azure sql - I'm answering in terms of Azure SQL.
Download SQL Server Management Studio

How to change the database which is used to store liferay content?

I have a glassfish server built with company default script. Then I have Liferay installed upon it. Liferay uses some predefined database to store the content on the pages it shows. It is a company shared database don't know where. How could I connect my liferay to a local clean database?
My setup is a Glassfish with Liferay, the DatabaseI use is MySQL.
Thanks for any help!
It's all explained here:
http://www.liferay.com/community/wiki/-/wiki/Main/Database+Configuration

create and restore a mysql db using a setup project (installer) in VS.Net

What is the best practice for creating an installer for a winform application.
The application is supposed to install the following without connecting to internet.
.Net Framework 3.5sp1
MySQL Server
My SQL Connector
Restore Mysql db
Update Config file with the MySQL uname/pwd.
I have all the msi files for installing the above mentioned items. But am wondering about the best practice to create the installer.
Thanks in advance,
Hi I came up with a similar situation. Firstly you should have .NET framework offline installer which can be downloaded from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=992cffcb-f8ce-41d9-8bd6-31f3e216285c. I assume you are using visual studio installer. There are couple of choices but I prefer to copy the offline .NET installer to the setup projects output directory and from requirements on target machine tab I set the install URL property of .NET framework the exact name of offline setup file. As described in the figure.
So the installer does not try to connect to a remote computer to download .NET framework and install it however I think it is more appropriate that it connects to a Microsoft server and installs it. Anyways the next step is to configure the MySQL server. MySQL is really generous for me since they support a fully documented noinstall files. You can find the document here: http://dev.mysql.com/doc/refman/5.5/en/windows-install-archive.html
Using a noinstall zip archive you can copy the dbengine core files to any folder on the clint machine. And change the configuration parameters of MySQL. You can name the MySQL service anything you want. Start the the service and create tables. You can do all of this stuff from custom actions tab of the setup project choosing the appropriate script files or you can write code for it. The beautiful thing is that your customer does not need to know that he/she is installing a database engine on the target machine. I hope this helps. Thanks.