Linux + QT interface development (including database) Summary

  Today eleven National Day, National Day over a meaningful, went to Longgang District Library, the first time that the books can be returned at any branch! This effectively facilitate the readers. For Linux applications, deliberately borrow one: "Qt4 GUI programming with MySQL under linux environment", mainly on the main points of this article to summarize it.

  SQLite and MySQL difference:

SQLite:

  When an application using SQLite, its function is directly integrated in the file (ie SQLite database) applications will include direct access to data, rather than interacting through some port (port, socket). Thanks to this underlying technology, which makes the SQLite very fast and efficient, and very powerful.

  Disadvantages are: no user management, can not be used where a multi-user application; database at the same time only a write operation, thus the throughput is limited.

  Application: 1. All require mobility, no need to extend the application of, for example, a local single-user applications, mobile applications and games.    

    2. Instead of disk access: in many cases, require frequent direct read / write disk file applications, into very suitable for use SQLite, you can benefit from using SQLite SQL bring functionality and simplicity.

        3. Test: It can kill most of the specific application business logic (that is, the main purpose of the application: to completion) test

MySQL:

Easy to use:
MySQL Installation is very easy. Third-party libraries, including visualization (that is, there are GUI) lets get started using the library database is very simple.
Feature-rich:
MySQL supports most relational database SQL function should have - some direct support, some indirect support.
Security:
MYSQL has many security features, some quite advanced.
Flexible and powerful:
MySQL can handle a lot of data, in addition, if necessary, it can "adapt" Data of all sizes.
Fast:
abandon support certain standard that allows for higher efficiency and can use shortcuts MySQL, so bring the speed increase.

 Use:   

    1. Distributed operation:   When SQLite provided can not meet your needs, you can put MySQL into deployment include stack, just like any a separate database server, it will bring a lot of freedom and some advanced operations Features.

  2. High safety:
  MySQL security features in a simple way for data access (and use) provides a reliable protection.
  3.Web Web sites and Web applications:
  the vast majority of websites (and Web applications) can ignore the constraints of simple work on MySQL. This flexible and scalable tool is easy to use and easy to manage - which proved very helpful in the long run.

This article is taken:

https://blog.csdn.net/qq_31930499/article/details/80420246

Thanks to the original author!

 

Guess you like

Origin www.cnblogs.com/zhihui-3669/p/11615656.html