Install MySQL 5.1.34 on Ubuntu 10.10

Source: Internet
Author: User

After installing mysql5.1.34 in the upgrade system, I have been too reluctant to install it. I directly downloaded a software package. Today, I took the time to compile and install this version. According to the official statement, several Versions later than MySQL are not compatible with gcc of later versions. Therefore, this problem occurs during the installation process. Here we record the compilation and installation process.

//////////////////////////////////////// ///////////////////

MySQL version: 5.1.34

Operating System: Ubuntu10.10

1./configure -- prefix =/usr/local/mysql

2. make

Here, a make error occurs. Delete the content in do_abi_check following the Makefile directly. Note that do_abi_check is retained; otherwise, the dependency is incomplete.

3. make install

4. cd/usr/local/mysql/bin

Mysql_install_db -- basedir =/usr/local/mysql -- datadir =/usr/local/mysql/data

Initialize mysql. Here, datadir is the directory where data will be stored when you create a database. If not specified, a default directory will be created.

5. Copy my_small.cnf in the support_files folder in the source code folder to/etc/my. cnf, and add the following content in mysqld:

User = mysql

Language =/usr/local/mysql/share/mysql/english

Datadir =/usr/local/mysql/data

6. mysqld starts normally, OVER

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.