Install MySQL Error archive processing

Source: Internet
Author: User
Tags localhost mysql

Today, when I upgraded MySQL to 5.1, I met. Write to share the following.

1,

[Root@localhost mysql]# scripts/mysql_install_db

Neither host ' localhost.localdomain ' nor ' localhost ' could is looked up with

/resolveip

Please configure the ' hostname ' command to return a correct

Hostname.

If you are want to solve this in a later stage, restart this script

With the--force option

This is mainly to modify the/etc/hosts file

echo "127.0.0.1 localhost.localdomain localhost" >> /etc/hosts

Then initialize the data, and if it's the same error, add the--force switch directly.

That's the situation I met today.

[Root@localhost mysql]# scripts/mysql_install_db--force

Installing MySQL system tables ...

Ok

Filling Help Tables ...

Ok

To start mysqld at boot time and you have to copy

Support-files/mysql.server to the ' right place ' for your system

Please REMEMBER to SET A PASSWORD for the MySQL root USER!

To did so, start the server, then issue the following commands:

/usr/local/mysql//bin/mysqladmin-u root password ' new-password '

/usr/local/mysql//bin/mysqladmin-u root-h localhost.localdomain password ' new-password '

The manual for more instructions.

Can start the MySQL daemon with:

Cd. ; /usr/local/mysql//bin/mysqld_safe &

Can test the MySQL daemon with mysql-test-run.pl

CD mysql-test; Perl mysql-test-run.pl

Please have a problems with the/bin/mysqlbug script!

The latest information about the MySQL is available on the Web at

Http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

This will successfully initialize the data.

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.