Oracle/MySQL °ü·Ã °Ô½ÃÆÇ |
---|
2011/07/30(22:37) from 110.12.189.244 | |
ÀÛ¼ºÀÚ : ÁÖÀÎÀå | Á¶È¸¼ö : 3439 , ÁÙ¼ö : 63 |
[Mysql-5.5.15] Compile & ¼³Ä¡ |
---|
# groupadd mysql # useradd -g mysql -d /usr/local/mysql mysql # passwd mysql # ls -l mysql-5.5.15.tar.gz -rw-r--r--. 1 root root 23774015 Jul 31 07:14 mysql-5.5.15.tar.gz # gzip -dc mysql-5.5.15.tar.gz | tar xvf - # cd mysql-5.5.15 # cmake . # make # make install # cd /usr/local/mysql # scripts/mysql_install_db --user=mysql Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: ./bin/mysqladmin -u root password 'new-password' ./bin/mysqladmin -u root -h localhost.localdomain password 'new-password' Alternatively you can run: ./bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd . ; ./bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd ./mysql-test ; perl mysql-test-run.pl Please report any problems with the ./bin/mysqlbug script! # chgrp -R mysql . # chown -R root . # chown -R mysql data # cp support-files/my-medium.cnf /etc/my.cnf # bin/mysqld_safe --user=mysql & # ps -ef|grep mysql root 4315 4252 0 08:56 pts/1 00:00:00 /bin/sh bin/mysqld_safe --user=mysql mysql 4553 4315 0 08:56 pts/1 00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/webedu.err --pid-file=/usr/local/mysql/data/webedu.pid --socket=/tmp/mysql.sock --port=3306 root 4578 4252 0 08:57 pts/1 00:00:00 grep mysql |