MySQL 5.0 for Linux installation manual

Source: Internet
Author: User

Source installation overview
----------------------------------

The basic commands you must execute to install a MySQL Source
Distribution are:

Shell> groupadd MySQL
Shell> useradd-G MySQL
Shell> gunzip | mysql-VERSION.tar.gz | tar-xvf-
Shell> Cd mysql-version
Shell>./configure -- prefix =/usr/local/MySQL
Shell> make
Shell> make install
Shells> CP support-files/my-medium.cnf/etc/My. CNF
Shell> Cd/usr/local/MySQL
Shell> bin/mysql_install_db -- user = MySQL
Shell> chown-r root.
Shell> chown-r MySQL VaR
Shell> chgrp-r MySQL.
Shell> bin/mysqld_safe -- user = MySQL &

If you start from a source rpm, do the following:

Shell> rpmbuild -- rebuild -- clean MySQL-VERSION.src.rpm

Set root password for MySQL
/Usr/local/bin/mysqladmin-u Root Password 'new-password'

Use the grant... identified by statement to grant permissions.
Grant select, insert, delete, update on dbname. * to user @ '%' identified by 'manager ';
Here, the password () function is unnecessary and does not need to be flush privileges for confirmation.

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.