http://www-jp.mysql.com/
sudo -s サーバーのユーザー設定 groupadd mysql useradd -g mysql mysql passwd mysql su - mysql mkdir packages サーバーにアップ scp -P YourPort mysql-5.5.29.tar.gz user@host:~user/packages/ tar -zxmf mysql-5.5.29.tar.gz cd mysql-5.5.29 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci make sudo make install cd /usr/local/mysql chown -R mysql . chgrp -R mysql . ./scripts/mysql_install_db --user=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 hostname 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! cd /etc/ mv my.cnf my.cnf.org cd /usr/local/mysql cp -i support-files/my-large.cnf /etc/my.cnf cp support-files/mysql.server /etc/init.d/mysql.server ./bin/mysqladmin -u root password '******' ./bin/mysqladmin -u root -h hostname password '******' ./bin/mysql_secure_installation |
0 件のコメント:
コメントを投稿