MySQL
そろそろウザいと思いますが、物覚えの悪いゴミヤロウの個人的な備忘録と御理解頂ければ幸いです。
目的
MySQL をインストールしたい。ボロノートからも繋ぎたい。
手順
- MySQL Server をインストールする。途中で root パスワードを訊かれるので適当に入力する
$ sudo apt-get install mysql-server
- localhost 以外からの接続を受け付けるよう my.cnf を編集して再起動
$ cd /etc/mysql/ $ sudo cp -p my.cnf my.cnf.org $ sudo vi my.cnf [mysqld] (snip) # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. #bind-address = 127.0.0.1 $ sudo /etc/init.d/mysql restart * Stopping MySQL database server mysqld ...done. * Starting MySQL database server mysqld ...done. * Checking for corrupt, not cleanly closed and upgrade needing tables.
- root ユーザだけには何もかも許しちゃう(セキュアド資格保有者にあるまじき設定)
$ sudo mysql -u root -p Enter password: (snip) mysql> grant all privileges on *.* to 'root' identified by 'xxx'; Query OK, 0 rows affected (0.00 sec) mysql> quit; Bye
ボロノートの MySQL Administrator から接続できる事を確認して完了。