mkdir /usr/local/src
cd /usr/local/src
tar fxzv mysql-3.23.57.tar.gz
./configure --prefix=/usr/local/mysql
install
./scripts/mysql_install_db
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
cp support-files/my-medium.cnf /etc/my.cnf
/usr/local/mysql/bin/mysqld_safe --user=mysql &
./mysqladmin -u root password 'PaSSwOrdBarU'
check result mysql
./mysql -u root -p
login password
you can see
mysql>
mysql> show databases;
Good Luck :)
No comments:
Post a Comment