Installing mysql from source
I've been trying to do this via source, I've read the mysql INSTALL-SOURCE fileIt saids
[QUOTE] shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-large.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
I do every step and run the configure like this
./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --bindir=/usr/bin --with-mysqld-user=mysql --without-debug --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disable-shared --with-extra-charsets=none
after I have completed all the steps, I go to /usr/bin/mysql
and I get the error
/usr/bin/mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
[root@72 mysql]#
How can I get this working, does anyone have any guides on installing mysql from source?
Then [root@72 mysql]# locate mysql.sock
/var/lib/mysql/mysql.sock
or nano /etc/my.cnf
socket = /var/lib/mysql/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock