
| ・ |
ドキュメントセンターを初めてご利用する方や運営方針についての基本的な姿勢をご覧になりたい方へ。
|
| ご利用の皆様から多く寄せられる質問にお答えしています。 |
|
| ・ |
ディーエーオフィスなどが利用する用語に関する解説を行います。
|
|
|
 |
 |  |
MySQLでデータベースをインストールするにはどうしますか? |
mysql_install_dbコマンドを使います。
本文書でのインストールとは、全くデータベースが導入されていない環境や、全データベースを削除した後のやり直しを想定したものです。通常は、「create database」コマンドを使います。
! データベース作成の例
実際にコマンドを実行すると、以下のようなメッセージが表示されます。先行きの作業が分かりやすく記述されてあるので転載します。
# 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/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h osakagw2.daoffice.com password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr/local ; /usr/local/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/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
|
| 文書番号 |
06444 |
| 日付 |
2006.04.13 |
| 参照数 |
583 |
|