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?