[ale] mySQL from scratch

ChangingLINKS.com x3 at ChangingLINKS.com
Fri Sep 20 03:36:48 EDT 2002


ale, 09-20-02 0229
I am having a hard time "starting" mySQL. I went through the following 
process;
MYSQL
rpm -e mysql (kill each dependency first)
groupadd mysql
useradd -g mysql mysql
cd /usr/local
ln -s /usr/local/mysql-max-3.23.52-pc-linux-gnu-i686 mysql
tar xvzf mysql-max-3.23.52-pc-linux-gnu-i686.tar.gz
cd mysql-max-3.23.52-pc-linux-gnu-i686
vim /etc/profile 
 add at the end -> PATH=$PATH:/usr/local/mysql/bin
vim /etc/ld.so.conf 
 add "/usr/local/mysql/lib"
ldconfig
         ./configure --prefix=/usr/local/mysql ERROR says binary installation
         make                                  "   "
         make install                          "   " 
scripts/mysql_install_db
chown -R root  /usr/local/mysql
mkdir var
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
cp support-files/my-medium.cnf /etc/my.cnf
vim /etc/my.cnf  
 remove "#" before InnoDB lines
/usr/local/mysql/bin/safe_mysqld --user=mysql &

>>>>>>>>I get these errors:

[root at computer mysql-max-3.23.52-pc-linux-gnu-i686]# 
/usr/local/mysql/bin/safe_mysqld --user=mysql &
[1] 1994
[root at computer mysql-max-3.23.52-pc-linux-gnu-i686]# Starting mysqld daemon 
with databases from /usr/local/mysql-max-3.23.52-pc-linux-gnu-i686/data
020920 02:29:20  mysqld ended

[root at computer mysql-max-3.23.52-pc-linux-gnu-i686]# mysql -u root
bash: mysql: command not found

>>>>>>>>>I try to start it from the directory.
[root at computer bin]# ./mysql -u root
ERROR 2002: Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (111)
-- 
Wishing you Happiness, Joy and Laughter,
Drew Brown
http://www.ChangingLINKS.com

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list