忍者ブログ
出来損ないのカメレオン

mysql

設定ファイルの見本をコピーする。
# cp /opt/src/mysql-5.0.18/mysql-5.0.18/support-files/my-medium.cnf /etc/my.cnf
# cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf


設定から起動:
////libstdc++を/usr/lib/内にコピーしておく。
# cp -rfapu /opt/local/lib/libstdc++.so.5 /usr/lib/
mysqlグループを作成する。
# groupadd mysql
mysqlユーザーを作成する。
# useradd -d /usr/local/mysql -g mysql -s /bin/false mysql
mysqlディレクトリのユーザーを変更する。
# chown -R mysql:mysql /usr/local/mysql
DBをインストールする。
# ln -s /usr/bin/hostname /usr/local/bin/hostname
# /usr/local/mysql/bin/mysql_install_db --user=mysql

Installing all prepared tables Fill help tables 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: /usr/local/mysql/bin/mysqladmin -u root password 'new-password' /usr/local/mysql/bin/mysqladmin -u root -h ns2 password 'new-password' See the manual for more instructions. You can start the MySQL daemon with: cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe & You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory: cd sql-bench ; perl run-all-tests Please report any problems with the /usr/local/mysql/bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at https://order.mysql.com

起動スクリプトをコピーする。
# cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/
コピーした起動スクリプトに実行権限を与える。
# chmod u+x /etc/init.d/mysql.server
ディレクトリを移動する。
# cd /etc/rc2.d/
OS起動時に自動起動するように、起動スクリプトのシンボリックリンクを作成する。
# ln -s ../init.d/mysql.server ./S99mysql.server
起動させる。
# /etc/rc2.d/S99mysql.server start
----------------------------------------
Zend MySQL
/usr/local/Zend/MySQL

mysqlユーザーを作成する。
# usermod -d /usr/local/Zend/MySQL mysql
# usermod -d /usr/local/mysql mysql

mysqlディレクトリのユーザーを変更する。
# chown -R mysql:mysql /usr/local/Zend/MySQL

DBをインストールする。
# /usr/local/Zend/MySQL/share/mysql/init_db.sql --user=mysql

PR
ブログ内検索
Counter


カレンダー
02 2025/03 04
S M T W T F S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
忍者ブログ [PR]