LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-24-2009, 12:41 PM   #1
firsten
Member
 
Registered: Mar 2007
Posts: 36

Rep: Reputation: 15
MySQL 5.1.34 problems with CentOS


Hi everyone. I've got an issue about installing MySQL 5.1.34 from the rpm files in my CentOS system. This is the output from mysql_install_db:

/usr/bin/mysql_install_db: line 244: /usr/bin/my_print_defaults: cannot execute binary file
Neither host 'PDCCTEEP.localdomain' nor 'localhost' could be looked up with
/usr/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


the commando resolveip return this:

-bash: /usr/bin/resolveip: cannot execute binary file


Anyone have any ideas about this behavior? Any hint would be precious. Thanks.
 
Old 08-24-2009, 01:03 PM   #2
mazhar_theone
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by firsten View Post
/usr/bin/mysql_install_db: line 244: /usr/bin/my_print_defaults: cannot execute binary file
Neither host 'PDCCTEEP.localdomain' nor 'localhost' could be looked up with
/usr/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


the commando resolveip return this:

-bash: /usr/bin/resolveip: cannot execute binary file

set the hosting for your machine using hotname command.

e.g.
Quote:
hostname server.name.com
make sure you have following line in /etc/hosts file

Quote:
127.0.0.1 localhost.localdomain localhost
You can also try to install mysql-server using yum.

Quote:
yum install mysql-server
 
Old 08-25-2009, 06:05 AM   #3
firsten
Member
 
Registered: Mar 2007
Posts: 36

Original Poster
Rep: Reputation: 15
Solved it with the correct version of rpm packages. Since im using CentOS 5.3 64 bit, and as it is the free distro based on RedHat EL, i downloaded the rpm files for RHEL5:

MySQL-client-community-5.1.37-0.rhel5.x86_64.rpm
MySQL-devel-community-5.1.37-0.rhel5.x86_64.rpm
MySQL-server-community-5.1.37-0.rhel5.x86_64.rpm
MySQL-shared-compat-5.1.37-0.rhel5.x86_64.rpm


everything works just fine!

Thanks for the post
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Install MySQL 5.1 in CentOS? chillyroll Linux - Newbie 6 07-23-2010 01:16 AM
error in installing mysql i.e. mysql-5.1.34-linux-powerpc-glibc23 in centos 4.4 i686 pankajd Linux - Newbie 1 06-07-2009 02:00 PM
Problems with MySQL on CentOS 4 lucyeve Linux - Server 4 07-02-2008 04:19 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
CentOS 5: postfix with mysql Berhanie Linux - Server 1 11-10-2007 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration