Install mysql_MySQL in Linux

Source: Internet
Author: User
Install mysql bitsCN.com in Linux
Install mysql in Linux: Download the mysql source package and place it in/usr/local/src. assume that my source package is: mysql.5.1.tar.gz create a user group and a user groupadd mysql // Create a mysql User Group useradd-g mysql // Create a mysql account to start installation: 1. decompress the source package tar-zxvf mysql.5.1.tar.gz 2. enter the package and install the software trilogy: configure, make, and make install. /configure -- prefix =/usr/local/mysql-with-charset = gbkmake clean; make) make install 3, cp support-files/my-medium.cnf/etc/ My. cnf // Copy the my-medium.cnf file to the/etc/directory and rename it to my. cnf4. open my in the editor. cnf file, find the log-bin = mysql-bin line, comment it out: # log-bin = mysql-bin5, enter the installation directory: bin/mysql_install_db -- user = mysql6. set the directory permission chown-R root. // Set the directory permission attribute chown-R mysql/usr/local/mysql/varchgrp-R mysql. bin/mysqld_safe -- user = mysql & // start mysql 7. Add/usr/local/mysql/bin to the environment variable. 8. run mysql-uroot. if the logon succeeds, the installation is successful. Author yuanzeyao2008bitsCN.com

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.