In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "the source code installation process of mysql". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "the source code installation process of mysql"!
Mysql
Package: mysql-5.5.15-linux2.6-i686.tar
Tar xf mysql-5.5.15-linux2.6-i686.tar-C / usr/local
Cd / usr/local ll
Ln-sv / usr/local/mysql-5.5.15-linux2.6-i686 / usr/local/mysql
Cd mysql
Ls
Create a LVM / dev/myvg/mydata
Mke2fs-j-L MYDATA / dev/myvg/mydata
Mkdir / mydata
Mount / dev/myvg/mydata / mydata
Modify / etc/fstab
Groupadd-g 3306 mysql
Useradd-g mysql-u 3306
Cd / mydata
Mkdir data
Chown-R mysql:mysql / mydata
Cd / usr/local/mysql
Chown-R mysql:mysql.
Initialize scripts/_install_db-- user=mysql-- datadir=/mydata/data
Chown-R root. Change the owner
Ls / etc/init.d
Ls support-files/
Cp support-files/mysql.server / etc/init.d/mysqld
Chkconfig-add mysql
Configuration file:
Cp support-files/my-large.cnf / etc/my.cnf
Vi / etc/my.cnf-- datadir = / mydata/data
Launch: service mysqld start
There is no mysql command:
PATH=$PATH:/usr/local/mysql/bin
Library files must be loaded (ldconfig) reloaded all library files
Vi / etc/ld.so.conf.d/mysql.conf-/ usr/local/mysql/lib
Header file ln-sv / usr/local/mysql/include / usr/include/mysql
Man page vi / etc/man.config-MANPATH=/usr/local/mysql/man
At this point, I believe that everyone on the "mysql source installation 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.