Mysql installation-free does not have any root permission, mysql installation-free root

Source: Internet
Author: User
Tags mysql download

Mysql installation-free does not have any root permission, mysql installation-free root

1. Download MySQL Community Server 5.5.41 Linux-Generic Compressed TAR Archive mysql download link

2. decompress the tar package. For example, decompress the package to the/home/work directory. For example, because the file name is too long, you can rename the package or create a soft link. Renamed mysql.

3. # cd mysql-go to the mysql working directory

4, # cp support-files/my-medium.cnf my. cnf-copy the official configuration file

# Vi my. cnf-Modify and add some configuration items

 user   = work port   = 3306 socket   = /home/work/mysql/mysql.sock # Here follows entries for some specific programs # The MySQL server [mysqld] user   = work port   = 3306 socket   = /home/work/mysql/mysql.sock  pid-file  = /home/work/mysql/mysql.pid basedir   = /home/work/mysql datadir   =/home/work/mysql/data log-error  =/home/work/mysql/logs/mysql_error.log

5. Execute the installation script

# Scripts/mysql_install_db-user = work console outputs the following content, indicating that the installation is successful

6. # bin/mysqld_safe-defaults-file = my. cnf &-start the service. Note: You need to add the configuration file path parameters.

7. #./bin/mysqladmin-defaults-file = my. cnf-u root password 'new-password'-set the user logon password

8. #./bin/mysql-defaults-file = my. cnf-u root-p-re-open a console and log on to mysql

The link to the installation instructions of the last official document is as follows:

The above is a small Editor to introduce you to mysql without installation without any root permissions, I hope to help you, if you have any questions, please leave a message, the small editor will reply to you in a timely manner. Thank you very much for your support for the help House website!

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.