Mysql LNMP deployment architecture of the installation

First, what is Mysql?
MySQL is a relational database management system, developed by the Swedish company MySQL AB, part of the Oracle's products. MySQL is one of the most popular relational database management system, WEB applications, MySQL is the best RDBMS (Relational Database Management System, a relational database management system) one application software.
MySQL is a relational database management systems, relational database stores data in separate tables rather than putting all the data in a large warehouse, thus increasing the speed and improved flexibility.
MySQL SQL language used is the most common standardized language used to access databases. MySQL software uses a dual licensing policy, divided communities and commercial versions, due to their small size, high speed, low cost of ownership, especially open source this feature, the development of small and medium websites have chosen MySQL as the database website.
Second, the installation Mysql service
1. Installation Environment dependencies (terminal character processing tools, parser compiler)
Mysql LNMP deployment architecture of the installation
2. Create a user management
Mysql LNMP deployment architecture of the installation
3. Extract the installation package mysql / opt directory
Mysql LNMP deployment architecture of the installation
4. Use configured cmake

cmake \

-DCMKAE_INSTALL_PREFIX=/usr/local/mysql \

-DMYSQL_UNIX_ADDR=/usr/local/mysql/mysqk.sock \

-DSYSCONFDIR=/etc \

-DSYSTEMD_PID_DIR=/usr/local/mysql \

-DDEFAULT_CHARSET=utf8 \

-DDEFAULT_COLLATION=utf8_general_ci \

-DWITH_INNOBASE_STORAGE_ENGINE=1 \

-DWITH_ARCHIVE_STORAGE_ENGINE=1 \

-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \

-DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \

-DMYSQL_DATADIR=/usr/local/mysql/data \

-DWITH_BOOST=boost \

-DWITH_SYSTEMD=1

For make && make install 5. After completion of the translation process
Mysql LNMP deployment architecture of the installation
Mysql LNMP deployment architecture of the installation
permission 6. Assign a user created
Mysql LNMP deployment architecture of the installation
7. Adjust the profile
Mysql LNMP deployment architecture of the installation
Mysql LNMP deployment architecture of the installation
8 set the environment variables
Mysql LNMP deployment architecture of the installation
Mysql LNMP deployment architecture of the installation
Mysql LNMP deployment architecture of the installation
9. Modify the startup script to initialize the database
Mysql LNMP deployment architecture of the installation
Mysql LNMP deployment architecture of the installation
10. The service may be so mysql command manager
Mysql LNMP deployment architecture of the installation
11. The service opening and Check whether to open ports
Mysql LNMP deployment architecture of the installation
to create the database password
Mysql LNMP deployment architecture of the installation
to log back mysql database
Mysql LNMP deployment architecture of the installation
summary: there are a lot of problems on the installed database details that need our attention, we must be careful and meticulous otherwise frequently results in an error state of mind to crash! !

Guess you like

Origin blog.51cto.com/14557905/2461123