LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2001, 01:00 AM   #1
chuckjones
LQ Newbie
 
Registered: Sep 2001
Posts: 3

Rep: Reputation: 0
Unhappy Redhat 7.1 / MySQL Installation


Trying to setup a web server with Redhat 7.1 / Perl / PHP and MySQL. I've gotten PHP, Telnet, and FTP running fine, but I've been through absolute hell trying to figure out the MySQL installation.

RPM:
I select all the MySQL options during the CD installation process.

CONFIGURATION:
The CD Install is done (for the 45th time), and I setup all the other services I want by commenting and uncommenting conf files. I come to MySQL...

shell: /var/lib/mysql/mysql_install_db

-->

Installing all prepared tables

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

______________

Great, right ?

shell: /usr/bin/safe_mysqld &

-->

starting mysqld daemon with databases from /var/lib/mysql
010917 01:35:43 mysqld ended

______________

It died. I go to the log file

shell: /var/log/mysql/ tail 100 mysqld.log

->

/usr/libexec/mysqld: Can't find file: '.mysql/host.frm' (errno: 13)

______________

I think I need to setup permissions, but I can't do it, MySQL won't let me in.

I've logged in as root, I've got no idea what to do now, I'm in pain. I'm going blind looking at the manual.

PLEASE HELP ME!!
Rob.
 
Old 09-17-2001, 08:15 PM   #2
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
No, all that stuff is done or already setup in RedHat 7.1

Install all the MySQL RPMs from the RedHat CD and startup MySQL:

/etc/rc.d/init.d/mysqld start

To make it permanent there are various ways, easiest for me is "ntsysv" which gives a text-based menu where you can select various services to turn on/off.

Do "mysqladmin password your_new_password" and it should set the root password to that. Might have to restart MySQL after that.

Done, works, ready to go...

Remember, start things using the init.d scripts when you can instead of manually...
 
Old 09-17-2001, 10:28 PM   #3
chuckjones
LQ Newbie
 
Registered: Sep 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

Thanks for the info - I did a clean install again, and got it running... you're right, I didn't need to do anything other than start it up. Someone emailed me a "setup" command which brought up the menu which allowed me to check off what services to use at startup. What the heck is that, and where is that from? It worked, and easy to remember...

Thanks so much!
 
  


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
mysql-installation: Not enough space in /var/lib/mysql/ linus123 Linux - Software 8 11-10-2006 02:19 PM
MySQL 3.23.58-14 installation prolem - mysql.sock not found lightcom Linux - Software 4 02-23-2005 12:46 AM
DBD-MySql-2.9004 Installation problem on Linux RedHat 9 luth Linux - Software 4 11-30-2004 04:56 AM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 02:54 PM
mySQL Redhat 9 installation jlj Linux - General 6 06-02-2003 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:50 PM.

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