Unzip and install MySQL5.1.65 in Ubuntu12.10

Source: Internet
Author: User
Tags mysql backup
In Ubuntu12.10, decompress MySQL5.1.65 and record the installation process.

Decompress and install MySQL 5.1.65 in Ubuntu 12.10.

Homepage → Database Technology

Background:

Read News

Unzip and install MySQL 5.1.65 in Ubuntu 12.10

[Date: 2012-12-05] Source: Linux community Author: teamlet [Font:]

Decompress and install MySQL 5.1.65 in Ubuntu 12.10.

1. Download

? P = mysql-5.1 & o = linux-

2. Decompress

Gunzip mysql-5.1.65-linux-i686-glibc23.tar.gz

Tar-xvf mysql-5.1.65-linux-i686-glibc23.tar

Sudo mv mysql-5.1.65-linux-i686-glibc23/usr/local/mysql

3. Create users and groups

Sudo groupadd mysql

Sudo useradd-g mysql

4. Modify the directory owner

Cd/usr/local/mysql/

Sudo chown-R mysql.

Sudo chgrp-R mysql.

5. initialize the database

Sudo scripts/mysql_install_db -- user = mysql -- basedir =/usr/local/mysql -- datadir =/usr/local/mysql/data/

6. Start

Bin/mysqld_safe &

7. Modify the root password

Bin/mysqladmin-u root password 'Password'

8. log on to the database

Bin/mysql-uroot-p

Enter the password to enter the database

9. View

Mysql> show databases;

OK!

  • 0
  • Cross-NAT, firewall (firewall) RAC Listener Configuration (ORA-12545)

    Summary of three methods for MySQL backup and recovery

    Related information MySQL installation tutorial Ubuntu 12.10 MySQL

    Image Information

    View All comments in this article (0)

    Comments

    Latest Information

    Popular this week

    Introduction to Linux community-advertisement service-website map-help Info-contact us
    The articles published on this site (LinuxIDC) do not mean that they agree with the statement or description. They only provide more information and do not constitute any suggestions.


    Copyright©2006-2011 Linux community All rights reserved Zhejiang ICP backup No. 06018118

    ,
    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.