Lamp-compilation and installation of mysql problems, please kindly advise

Source: Internet
Author: User
Tags localhost mysql
Mysql User and mysql permission owner are changed to mysql. mysql executes scriptsmysql_install_db. the following error occurs: [root @ localhostmysql] # scriptsmysql_install_db -- usermysql -- datadirmydatadatascri... mysqllamplinux

The following problems occur during MySQL compilation and installation.
Install mysql version in vmwarevm of self-built Windows 64-bit system is mysql-5.5.28-linux2.6-x86_64.tar.gz
Mysql User and mysql permission owner are changed to mysql. mysql execute scripts/mysql_install_db. the following error occurs:
[Root @ localhost mysql] # scripts/mysql_install_db -- user = mysql -- datadir =/mydata/data/
Scripts/mysql_install_db: line 249:./bin/my_print_defaults: cannot execute binary file
Neither host 'localhost. localdomain 'nor 'localhost' could be looked up
./Bin/resolveip
Please configure the 'hostname' command to return a correct
Hostname.
If you want to solve this at a later stage, restart this script
With the -- force option

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.