The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
"No Drives Found" error during Redhat Linux AS 4 installation pieman8080 Red Hat 2 10-13-2008 12:05 PM
MySQL python installation Gayathrirri Linux 1 02-18-2008 10:40 AM
AIX - MySQL installation help rishi AIX 2 11-20-2006 12:48 AM
MYSQL command to take a backup of the database in Redhat linux 7.2 bache_gowda UNIX for Advanced & Expert Users 4 01-21-2004 02:16 PM
mysql in redhat gparsons70 UNIX for Dummies Questions & Answers 13 10-31-2001 06:10 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-14-2001
theDirtiest theDirtiest is offline
Registered User
  
 

Join Date: Nov 2001
Location: Maryland
Posts: 20
mysql installation error using redhat 7.2

i am a newbie to unix admin stuff so bare with me. -- i get this message when executing mysql_install_db during the installation of mysql. what is the cause of this and how can it be fixed. btw - i have tried installing as root and other accounts also.


scripts/mysql_install_db: ./bin/my_print_defaults: cannot execute binary file
WARNING: The host 'localhost.localdomain' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL deamon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
mkdir: cannot create directory `./data/mysql': Permission denied
chmod: getting attributes of `./data/mysql': Permission denied
mkdir: cannot create directory `./data/test': Permission denied
chmod: getting attributes of `./data/test': Permission denied
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
scripts/mysql_install_db: ./bin/mysqld: cannot execute binary file
Installation of grant tables failed!

Examine the logs in ./data for more information.
You can also try to start the mysqld daemon with:
./bin/mysqld --skip-grant &
You can use the command line tool
./bin/mysql to connect to the mysql
database and look at the grant tables:

shell> ./bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in ./data that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the ./bin/mysqlbug script!
  #2 (permalink)  
Old 11-14-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
First you need to fix your "localhost.localdomain" problem. Put your real hostname in /etc/hostname and a proper entry in /etc/hosts and then reboot.

Next, make sure you are trying the install as root -- that should fix any "permission denied" errors you are seeing.

Finally, RedHat provides a mysql rpm package which would make the install much easier. Recommend installing that rather than trying to do it manually.
  #3 (permalink)  
Old 11-14-2001
theDirtiest theDirtiest is offline
Registered User
  
 

Join Date: Nov 2001
Location: Maryland
Posts: 20
thanks, there are several mysql rpm's, which ones should I install?

I know this one
MySQL 3.23.44 Server

But what about these?
MySQL 3.23.44 Benchmark/test suites
MySQL 3.23.44 Client programs
MySQL 3.23.44 Libraries and Header files for development
MySQL 3.23.44 Client shared libraries
  #4 (permalink)  
Old 11-15-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
You almost certainly need the "Client Programs" and "Client Shared Libraries". You only need the "Benchmark" if you want to benchmark MySQL, and you only need the "Libraries and Header Files" if you want to write C/C++ programs which interface directly with your database. (i.e. if you are using a pre-built interface such as Perl, PHP, etc) you wont need this one.
  #5 (permalink)  
Old 11-15-2001
theDirtiest theDirtiest is offline
Registered User
  
 

Join Date: Nov 2001
Location: Maryland
Posts: 20
thanks again --- another problem

installing the 'client programs' rpm using the following command line: rpm -ivv MySQL-client-3.23.44-1.i386.rpm, I get the following error, thus it does not install correctly.

error: unpacking of archive failed on file /usr/bin/mysql;3bf412e3: cpio: MD5 sum mismatch

I get the same type of error when installing the 'Client Shared Libraries' rpm. Can I get some more help? Thanks.

Last edited by theDirtiest; 11-15-2001 at 03:33 PM..
  #6 (permalink)  
Old 11-15-2001
theDirtiest theDirtiest is offline
Registered User
  
 

Join Date: Nov 2001
Location: Maryland
Posts: 20
i think i might know what the problem is. i downloaded those two rpm's on a windows machine, and then ftp'd them to a linux box, then secured copied them to the machine that i tried to install them on. unlike the server rpm, which i downloaded directly.

I got the following warning when I wanted to see what the rpm would install: rpm -qpl MySQL-client-3.23.44-1.i386.rpm

warning: Expected size: 1773110 = lead(96)+sigs(68)+pad(4)+data(1772942)
warning: Actual size: 1773090

All that transferring must have mess with the size of the rpm or something (like I said I'm new to this). So I will download directly to the machine when I get home and then try it again. Thanks.
  #7 (permalink)  
Old 11-15-2001
theDirtiest theDirtiest is offline
Registered User
  
 

Join Date: Nov 2001
Location: Maryland
Posts: 20
it worked - great


thanks again
Closed Thread

Bookmarks

Tags
cpio, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0