Get the App
SLTechnology News&Howtos  ›  Database  › 

The process of compiling, installing, initializing and starting Mysql

Shulou Source: shulou.com Published: 2022-05-31 18:48:08 10月02日 Update

This article focuses on "Mysql compilation and installation, initialization and startup process", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the process of compiling, installing, initializing and starting Mysql.

1. Install tar-zxf cmake-2.8.3.tar.gz cd cmake-2.8.3. / configure make make install cd. / usr/sbin/groupadd mysql / usr/sbin/useradd-r-g mysql mysql tar-zxvf mysql-5.5.11.tar.gz cd mysql-5.5.11 cmake-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.5.11. Make make install cd / usr/local/mysql-5.5.11/ chown-R mysql. Chgrp-R mysql. # scripts/mysql_install_db-- user=mysql / usr/local/mysql-5.5.11/scripts/mysql_install_db-- basedir=/usr/local/mysql-5.5.11-- the directory where the datadir= database stores data-- user=mysql

2. Initialize # # Edit / etc/mysql/master/my_***.cnf file, pay attention to modify ip, port and innodb association path # # if innodb is not used You can comment out innodb-related configurations mkdir-p / data/mysql_***_data/innodb chown-R mysql.mysql / data/mysql_***_data cd / usr/local/mysql-5.5.11/ # # initialize database / usr/local/mysql/scripts/mysql_install_db-datadir=/data/mysql_***_data-user=mysql # # error # # FATAL ERROR: Could not find. / bin/my_print_defaults If you compiled from source You need to run 'make install' to copy the software into the correct location ready for operation. # # solve # # / usr/local/mysql-5.5.11/scripts/mysql_install_db-- basedir=/usr/local/mysql-5.5.11-- datadir= database storage path-- user=mysql

At this point, I believe that everyone on the "Mysql compilation and installation, initialization and startup process" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Data process compilation database content path learning practical deeper no use interest practicality practical easy to operate files methods more friends comments directories Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Redmi Microsoft MariaDB Shulou Technology