In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.