As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm going to deploy an IIS 7 Web Server for my ASP.NET MVC 4 Application.
Windows Server 2008
IIS 7
SQL Server 2008
I'm going to do this:
In my application:
*Each customer have to use two database
First DB: Their own database(each customer have one)
Second DB: The Global Database (all customer have the same one)
And the First DB can join to the second DB.
(I'm going to use Server Binding)
And about Web-server:
Each customer have their own Web-site (on the same IIS Web Server) to get the View/UI
All customer have the same API Web Server (this one will do everything: get data from database, add/remove data,...)
Each customer have one Search-Engine(Suggestion tool), to use this tool, I have to load all relative data into Memory(reload this data each 4 hours)
This is the first time I have to deploy a server like this, so I don't know how to do the best...
If there are any advises, suggest, reference, books,...please send it to me.
Any help is appreciated!
IIS and SQL Server already cache things in memory for performance, provided there is enough memory and the programming allows it. You don't need to write a special module to do this.
You don't need Server Binding to join across databases in SQL Server. You just join accross the database in your SQL (provided they are on the same server)
SELECT D1.F1, D2.F2
FROM
ClientDatabase.dbo.Table1 D1
INNER JOIN
GlobalDatabase.dbo.Table2 D2
ON D1.Key = D2.Key
SQL Server already comes with a text search engine http://msdn.microsoft.com/en-us/library/ms142571.aspx
Will you be searching text within database records, or will you be searching text in external documents (i.e. Word, PDF)
It appears you are reinventing the wheel. You are more likely to have success if you use pre-built proven components!
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm planning to build an iPhone application in Objective-C that will require to be connected to an MySQL database.
Should I,
Use a framework and query the database directly from the application
Go through a PHP page that will get the data, transform it into JSON and send it to the application?
Is the first solution secured ? Which framework do you recommend?
How can I secure the server and the access to the database as it will be open to anyone on the internet?
Thank you for your precious answers.
Most probably point 2 is used in mobile appliction.
Personally, if the MySQL DB is based on the internet, I would expose a Webservice to interact with it.
It is depends on your database size. If it is very large then you should use Webservice to received data from server. You can use secure HTTP base server connection. Very large size database is not recommended to stored in local(phone memory).
If your database is small in size and not frequent updating then you can use Sqlite as your database. This is most preferable.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm coding an app in XCode4, and am approaching a part of the development in which I use web services to connect to a MySQL database to both pull current and write new user account information.
Just wondering if this will work in the iOS Simulator that comes with the XCode bundle?
You don't need an answer for this question, as you have it right there in the same question.
I really think you should take home the following:
A web-service is an interface to a (possibly) remote entity that will answer to you with data/calculations etc.
There are two sides to a web-service: (1) the server side which is the real web-service, and (2) the client side which are the web-service libraries that you use to connect and use/get data from
A web-service to a MySQL database will encapsulate/hide the database from you. This is usually so that you don't need to deal with the query language/data conversion/relationships/etc. Keep in mind that there's no MySQL over web-services (out-of-the-box), so someone has to connect those two for you.
A MySQL server can run on your computer, on a virtual machine on your computer or on a remote computer.
The web service can run on the same places, but not necessarily on the same place
That said the iOS Simulator doesn't need to run the web-service or the MySQL server, It only needs to connect to them. As such they may be wherever, you just need to be able to connect to them.
The simulator is able to make HTTP(S) requests, so of course web services would work.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
My team has a product that was created using MySQL. All of our other systems use SQL Server 2008, and I want to investigate migrating to SQL Server. The person who headed up the MySQL server effort has left the company, so now we don't have anyone familiar with MySQL. We want to migrate, but I want to be able to present a detailed analysis as to why we want to migrate. Are there any documented case studies on the advantages/disadvanteges of MySQL, and any compelling reasons to migrate to SQL Server? FYI, the app is still in Beta mode, it would be easier to migrate now than 6 months from now.
The two conversations that I don't want to have with my boss are:
1) I want to migrate the app to SQL Server, and the reason is "just because I want to ".
2) We should have migrated 6 months ago, but we didn't and wish we had.
You've already made the two most important points for your case:
"All our other systems use SQL Server 2008"
"Now we don't have anyone familiar with MySQL".
Given those conditions, the case has to be made for retaining MySQL, not moving away from it. If the product isn't dependent on specific MySQL features, move. Simplify your stack, reduce your support overhead.
I say this as somebody with a strong antipathy to MS products. But I'm also a responsible senior software engineer and I know what's right.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
does anybody know some free tool for synchronization MySQL database (data and structure) like in Navicat for Windows ?
I'm using Structure and Data synchronization. Sometimes Data transfer. I was just wondering if there is not any software like this for free. Found only HeidiSQL (which looks perfect but work worse).
MySQL Workbench Beta does this perfectly and for free for now.
You can just try dbForge Studio for MySQL to sync mysql databases. This tool provides a number of features that help you with mysql synchronization:
MySQL sync tools allows you to compare quickly MySQL schema and data
Review differences, apply groups and filters
Apply more than one synchronization ways to choose from
Well-tested functionality, created by developers for developers and
DBAs
There is free 30-days usage of the MySQL sync tools in a dbForge Studio trial.
If you just want synchronization would MySQL replication work for you?
http://dev.mysql.com/doc/refman/5.0/en/replication.html
You should use MySQL Workbench. It has sync feaures, which is great. I use 2 different servers (dev and prod) and of course the EER Model. I sync the model with the development database, and then I sync the prod database with my model.
Percona Toolkit (formerly Maatkit) has a tool for this ....
https://www.percona.com/doc/percona-toolkit/2.2/pt-table-sync.html
Toad for MySQL has synchronization abilities and is free.
What functionality of Navicat do you need? There is a number of ways without that software to synchronize mysql. You can use the MySQL replication functionality or simply copy and paste the data files (if your using MyISAM tables it's just a straight copy) innoDB tables are a little more tricky.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm on a little quest of merging the structure of two MySql databases. Is there a tool for this with the might of Red-Gate's SQL Compare? Are there any free alternatives?
I've been using SQLyog for years now. Recently they released v8.0 which includes an updated interface and two very cool features the Query Profiler and SQL Formatter. The formatter was the reason I upgraded this year.
http://www.webyog.com/en/sqlyog_feature_list.php
Blog post with video and animated gif of the SQL Formatter in action
http://www.webyog.com/blog/2009/02/02/profile-and-format-mysql-queries-with-the-new-sqlyog-80/
A few years ago I tried Navicat and the mysql manager but decided on SQLyog. I'm sure both products have been updated since but I'm still happy with SQLyog which is updated regularly.
[Update] - Just downloaded and installed NaviCat 8 for MySQL and was not impressed
After I added this post I reviewed and downloaded v8 of NaviCat for MySQL. In comparison with user interface of SQLyog there is no comparison. SQLyog is better and more intuitive. Especially with the two latest features mentioned earlier. Immediately I noticed how SQLyog keeps you in one window when trying to view the data of a table, while Navicat spawns a new window. The report builder and viewer is the only thing that would put Navicat above SQLyog IMHO, and I already have other means to handle reports using ASP.NET. Try both products and I think you'll agree with me.
although i dont have any experience with it, i hear that navicat would be the tool to use:
https://www.navicat.com/en/products/navicat-for-mysql
also toad for mysql i hear isnt bad:
http://www.quest.com/toad-for-mysql/
Toad for MySQL can do both a "Schema Compare" as well as a "Data Compare" (and a lot more).
It used to be freeware, but the latest versions are not. You can still find the old versions though.
I've used Navicat for more than 3 years. It provides all the features that I need and save me tons of time for managing and developing MySQL and Oracle.
You can find a visual tutorial about Navicat's data/ structure synchronization at http://support.navicat.com/visual_tutorial/data_sync.html.