インストール後の設定
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
*インストール後の設定 [#a471760c]
#contents
**自動起動設定 [#v9d3c8d1]
MySQLのソースパッケージには起動・停止制御用のスクリプトが...
下記手順にて所定位置にスクリプトをコピーすることで自動起...
cd [MySQLソースパス]
cd ./support-files
chmod 755 mysql.server
cp ./mysql.server /etc/init.d/mysql
MySQLをOSのサービスとして登録する
chkconfig mysql on
サービスの登録状況を確認する
chkconfig --list | grep mysql
mysql 0:off 1:off 2:on 3:on 4:on ...
**rootアカウントの設定 [#w8648bfc]
MySQLの管理者ユーザの設定をする
mysqladmin -u root password 'PASSWORD'
mysqladmin -u root -h [HOST NAME] password 'PASSWORD'
接続を試験する
mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 5.0.26
Type 'help;' or '\h' for help. Type '\c' to clear the bu...
mysql>
**環境変数 PATH設定 [#o236b2d7]
MySQL実行ファイルのパスを設定する。~
アカウント個別に設定を行なう場合は~/.bash_profile、アカウ...
export PATH=$PATH:/usr/local/mysql/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mysql...
終了行:
*インストール後の設定 [#a471760c]
#contents
**自動起動設定 [#v9d3c8d1]
MySQLのソースパッケージには起動・停止制御用のスクリプトが...
下記手順にて所定位置にスクリプトをコピーすることで自動起...
cd [MySQLソースパス]
cd ./support-files
chmod 755 mysql.server
cp ./mysql.server /etc/init.d/mysql
MySQLをOSのサービスとして登録する
chkconfig mysql on
サービスの登録状況を確認する
chkconfig --list | grep mysql
mysql 0:off 1:off 2:on 3:on 4:on ...
**rootアカウントの設定 [#w8648bfc]
MySQLの管理者ユーザの設定をする
mysqladmin -u root password 'PASSWORD'
mysqladmin -u root -h [HOST NAME] password 'PASSWORD'
接続を試験する
mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 5.0.26
Type 'help;' or '\h' for help. Type '\c' to clear the bu...
mysql>
**環境変数 PATH設定 [#o236b2d7]
MySQL実行ファイルのパスを設定する。~
アカウント個別に設定を行なう場合は~/.bash_profile、アカウ...
export PATH=$PATH:/usr/local/mysql/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mysql...
ページ名: