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)
2. Create a user management
3. Extract the installation package mysql / opt directory
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
permission 6. Assign a user created
7. Adjust the profile
8 set the environment variables
9. Modify the startup script to initialize the database
10. The service may be so mysql command manager
11. The service opening and Check whether to open ports
to create the database password
to log back mysql database
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! !