Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 04-21-2005, 09:55 AM   #1
Dark Severance
LQ Newbie
Registered: Apr 2005
Posts: 17

Rep: Reputation: 0
mysqladmin doesn't work properly

I believe it is probably something to do with my Path somewhere, maybe within .bashrc but I'm not entirely sure as I'm still learning.

Originally I kept having tons of problems trying to install mySQL. I finally found this guide which was helpful:

The main thing I think is I was getting interference from the .RPM installs that came with my Red Hat 8.0. I removed those finally and then continued to follow the instructions. When starting the server it says cd to /usr/local/mysql which works fine. Once there I'm supposed to:
bin/mysqld_safe --user=mysql &
However that doesn't work, instead I have to do the following:
./bin/mysqld_safe --user=mysql &
Once it is up I'm supposed to test it with just using the mysqladmin ping command. However in order to get it to work I have to be in /usr/local/mysql and type
./bin/mysqladmin ping
So I believe that is just the patching. I did follow the part of the instructions about editing the /home/mysql/.bash_profile:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc

# Source Global Definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc

# Get the Aliases and Functions
umask 022
EDITOR=vi;               export EDITOR
TERM=xterm;              export TERM
TMPDIR=/tmp;             export TMPDIR

alias ls="ls -FA"

# Setup Search Path

export PATH

# Setup Java Environment

export JAVA_HOME


echo ".bash_profile executed for user $USER"

# User specific environment and startup programs
# export PATH
# unset USERNAME
I am using Red Hat 8.0 (I know its old but I'm still learning right now) and installed mysql-standard-4.1.11-pc-linux-gnu-i686. I still believe I'm missing something though. Can someone help me out on what I'm missing that I should do?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CP command doesn't work properly? itz2000 Linux - Newbie 1 08-02-2005 01:14 PM
mysqladmin doesn't work with the when I add -p attribute to it Niceman2005 Linux - General 1 04-27-2005 07:11 PM
gpm don't work properly Duukkis Linux - Software 3 03-21-2004 09:58 AM
[help]my JuK can't work properly now... QuickTime Linux - Software 1 12-26-2003 10:33 AM
Getting apt-get to work properly pwaring Debian 15 12-12-2003 04:10 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:43 PM.

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