LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 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: http://www.idevelopment.info/data/My...UX4020_3.shtml

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:
Code:
bin/mysqld_safe --user=mysql &
However that doesn't work, instead I have to do the following:
Code:
./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
Code:
./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:
Code:
# .bash_profile

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

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

# 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

PATH=/usr/local/mysql/bin:/usr/local/mysql/support-files:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/X11R6/bin:/usr/java/jdk1.5.0_02/bin:/usr/java/jdk1.5.0_02:.
export PATH

# Setup Java Environment

JAVA_HOME=/usr/java/jdk1.5.0_02
export JAVA_HOME

CLASSPATH=.
CLASSPATH=${CLASSPATH}:/u01/app/oracle/product/9.2.0/jdbc/lib/ojdbc14.jar
export CLASSPATH

echo ".bash_profile executed for user $USER"

# User specific environment and startup programs
#
# PATH=$PATH:$HOME/bin
#
# 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?
 
  


Reply


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


All times are GMT -5. The time now is 08:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration