| | 363 | Trac の DB データは blog と同様、 mysqldump コマンドを利用する。但し、今回は Trac 関連の DB はすべて同一の DB ユーザーで管理しているので、前回よりコマンド数は少なく済む (grant する回数はむしろ増えたけど)。 |
| | 364 | |
| | 365 | * 旧サーバー側での操作: |
| | 366 | {{{ |
| | 367 | $ cd ~/tempsql |
| | 368 | $ mysqldump -u trac_master -p --databases trac_otoco trac_ideanote trac_erk_board trac_muzplay trac_boeboe trac_paynote >trac_all.sql |
| | 369 | }}} |
| | 370 | * 新サーバー側での操作: |
| | 371 | {{{ |
| | 372 | $ cd ~/tempsql/ |
| | 373 | $ rsync -ae ssh onaka.harapeko.jp:/home/murachi/tempsql/trac_all.sql . |
| | 374 | $ mysql -u root -p <trac_all.sql |
| | 375 | $ mysql -u root -p |
| | 376 | |
| | 377 | mysql> grant all privileges on trac_otoco.* to trac_master@localhost identified by 'パスワード'; |
| | 378 | mysql> grant all privileges on trac_ideanote.* to trac_master@localhost; |
| | 379 | mysql> grant all privileges on trac_erk_board.* to trac_master@localhost; |
| | 380 | mysql> grant all privileges on trac_muzplay.* to trac_master@localhost; |
| | 381 | mysql> grant all privileges on trac_boeboe.* to trac_master@localhost; |
| | 382 | mysql> grant all privileges on trac_paynote.* to trac_master@localhost; |
| | 383 | mysql> quit |
| | 384 | }}} |