MySQL 5.7.202 binary packages installed without root, drip cloud server

Source: Internet
Author: User

01. Download the installation package = https://dev.mysql.com/downloads/mysql/

02, upload to Linux system, I use the drop cloud Server installed in the Home/dc2-user directory

03, decompression = TAR-ZXF mysql-5.7.20-linux-glibc2.12-x86_64.tar.gz

04, cut to User directory = = mv Mysql/home/dc2-user/mysql

05, go to mysql directory = Cd/home/dc2-user/mysql

06, create data directory and log directory = = mkdir data = mkdir logs

07. Create configuration file = Vim my.conf

08, write Content

[Mysqld]
User=dc2-user
port=3306
Socket=/home/dc2-user/mysql/mysql.sock
Pid-file=/home/dc2-user/mysql/mysql.pid
Basedir=/home/dc2-user/mysql
Datadir=/home/dc2-user/mysql/data
Log-error=/home/dc2-user/mysql/logs/mysql_error.log

09. Install MySQL = /bin/mysqld--initialize--user=dc2-user--basedir=/home/dc2-user/mysql--datadir= /dc2-user/mysql/data

10, may be missing libaio.0.1 download and upload of Linux =

One by one, http://mirror.centos.org/centos/7/os/x86_64/Packages/libaio-0.3.109-13.el7.x86_64.rpm

12, due to lack of root privileges, borrow sudo command = + sudo RPM-IVH package name

13, execute again 09

14. Start with config file ./bin/mysqld_safe--default-file=my.conf &

15. Log in to + = /bin/mysql-h 127.0.0.1-uroot-p

16, if need to be outside the network access, need to configure the Drip cloud Firewall policy, open 3306 port

MySQL 5.7.202 binary packages installed without root, drip cloud server

Related Article

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.