●debian(etch)でmythtvを試してみました。(その3)
■mysqlを入れるためにapt-lineの追加をします。
↓以下を追加
deb http://www.debian-multimedia.org etch main
debian:~# vi /etc/apt/sources.list
debian:~# apt-get update
■mysqlのインストール
debian:~# apt-get install mysql-server mysql-client mysql-devel
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package mysql-devel
debian:~# apt-get install mysql-server mysql-client
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl
mysql-client-5.0 mysql-common mysql-server-5.0
Suggested packages:
dbishell libcompress-zlib-perl tinyca
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl
mysql-client mysql-client-5.0 mysql-common mysql-server mysql-server-5.0
0 upgraded, 10 newly installed, 0 to remove and 1 not upgraded.
Need to get 35.3MB of archives.
After unpacking 91.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
■念のため再起動して動作しているか確認する
ebian:~# reboot
debian:~# mysqlshow
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
+--------------------+
■mysqlのrootのパスワードを設定する。
(hogehogeの部分を適当な文字列に変更する。)
debian:~# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.0.32-Debian_7etch4-log Debian etch distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> SET PASSWORD FOR root@localhost=PASSWORD('hogehoge');
Query OK, 0 rows affected (0.00 sec)
■パスワードの確認
コマンドプロンプトが表示されたらOKです。
debian:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.0.32-Debian_7etch4-log Debian etch distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
続きはまた今度