centos7.2+mysql5.6.35+subversion1.9.7+apache+https+php5.6.20+manmanager1.10 (i)

Source: Internet
Author: User
Tags chmod mysql client

Most recently, because of the Windows platform's PowerShell virus, all Windows servers need to be migrated to Linux, including SVN, which has encountered many pits during the migration process and is now documented

This set of environments is used centos7.2+mysql5.6.35+subversion1.9.7+apache+https+php5.6.20+manmanager1.10

First, centos7.2 installation

Yum Install wget vim-y

Set SELinux to Disabled,reboot (this is important because Svnmanager is required to connect to the MySQL database)

vim/etc/selinux/Config set SELinux

Stop FIREWALLD Firewall (also can not stop, open the corresponding port on the line, because we have the external firewall, so to facilitate direct shutdown)

Systemctl Stop Firewalld.servicesystemctl Disable Firewalld.service

Uninstalling the system comes with the MARIADB

rpm-qa| grep mariadb  //  query out installed  mariadbrpm-e--nodeps filename  //  Uninstall MARIADB , the file name is the file queried by the above command .

Delete the my.cnf under the ETC directory

RM /ETC/MY.CNF

Two mounting mysql5.6

Install the necessary components

Yum Install GCC gcc-c++ libaio libaio-devel BZR Bison libtool ncurses5-devel-y

Download and unzip the MySQL software

cd/usr/local/wget -C http://mirrors.sohu.com/mysql/mysql-5.6/ mysql-5.6.35-linux-glibc2.5-x86_64.tar.gztar zxvf  mysql-5.6.  -LINUX-GLIBC2. 5-x86_64. Tar . GZ MV mysql-5.6. -LINUX-GLIBC2. 5-x86_64 MySQL

Execute the following command to create a MySQL user group

[[email protected] ~]# Groupadd MySQL

Execute the following command to create a user named MySQL and join the MySQL user group

[[email protected] ~]# useradd-g MySQL MySQL

Copy a copy of the my-default.cnf file under/usr/local/mysql/support-files/to/etc

CP MY-DEFAULT.CNF/ETC/MY.CNF

Configure the My.cnf file in the/etc directory

[Email protected] support-files]# vim/etc/My.cnf[mysql] # set MySQL client default character set-character-set=UTF8 Socket=/var/lib/mysql/Mysql.sock [mysqld] Skip-name-Resolve #设置3306端口 Port=3306Socket=/var/lib/mysql/Mysql.sock # Set the installation directory for MySQL Basedir=/usr/local/MySQL # Set the data storage directory for MySQL database DataDir=/usr/local/mysql/Data # allows maximum number of connections Max_connections= $# The default character set used by the server is a 8-bit encoded latin1 character Set character-set-server=UTF8 # Default storage engine that will be used when creating a new table-storage-engine=INNODB Lower_case_table_name=1Max_allowed_packet=16m

Create a/var/lib/mysql file
mkdir -P  /var/lib/mysql

and give permission

chmod 777 /var/lib/mysql

Go to install MySQL software catalog

[[email protected] ~]# cd/usr/local/mysql  chown -R mysql:mysql./        Modify the current directory to have a MySQL user  [email protected] mysql]#.
[[email protected] mysql]# chown-r mysql:mysql Data modifies the owner of the current data directory as a MySQL user

Grant MY.CNF Maximum Permissions

chmod 777 /ETC/MY.CNF

Copy the startup script to the resource directory

CP ./support-files/mysql.server/etc/rc.d/init.d/// Add mysqld Service Control script execution Permissions  chmod +x/etc/rc.d/init.d/// add mysqld service to System services [[email protected] mysql]# Chkconfig--  // Check whether the Mysqld service is in effect [email protected] mysql]# chkconfig--//  Start mysqldService mysqld start

Add the MySQL bin directory to the PATH environment variable and edit the ~/.bash_profile file

[[email protected] mysql]# vim ~/// Add the following information at the end of the file:export path= $PATH:/usr/local/mysql/  Bin// Execute the following command is the modified content immediately effective:[[email protected] mysql]# source ~/.bash_profile

Log in as root account for MySQL, default is no password

[Email protected] mysql]# mysql-u root-p  

Set the root account password to 123456 (can also be changed to the password you want)

mysql> usemysql;  MySQL>update user set Password=password ('123456') where user='root  ' and host='localhost';  MySQL>flush privileges;

Set the remote host login, note the following your username and your password change to the user and password you need to set

' Root '@'%'123456' with GRANT option;mysql> Flush privileges;

Create Svnmanager libraries and users

Mysql> show databases; Mysql> CREATE Database svnmanager;mysql'admin'admin  '; MySQL> Grant all on svnmanager.* to [email protected]'%' ' Admin ' ; MySQL> Flush privileges;

centos7.2+mysql5.6.35+subversion1.9.7+apache+https+php5.6.20+manmanager1.10 (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.