セキュリティの為にsshのポートを変更している場合、ポートを指定しないとscpできません。
$scp -P 24622 user_name@xxx.xxx.xxx.xxx:/tmp/xxxxxxxxx.tar .
[root@air php-5.3.3]# yum install yum-priorities
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: ftp.jaist.ac.jp
* base: ftp.jaist.ac.jp
* extras: ftp.jaist.ac.jp
* updates: ftp.jaist.ac.jp
Setting up Install Process
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: ftp.jaist.ac.jp
* base: ftp.jaist.ac.jp
* extras: ftp.jaist.ac.jp
* updates: ftp.jaist.ac.jp
Setting up Install Process
MySQLインストール後は、rootにパスワードが設定されていないから、他に管理者権限つくってrootを削除しちゃいます。
1.MySQLに接続
#mysql
2.全権限を与えたユーザ作成
mysql> GRANT ALL PRIVILEGES ON *.* TO twostroke@localhost IDENTIFIED BY 'yamahatzrdaisuki' WITH GRANT OPTION;
Query OK, 0 rows affected (0.01 sec)
3.作ったユーザでログイン
mysql> quit
#mysql -u twostroke -p
4.通常作業のユーザも作っておく
mysql> grant select,insert,delete,update,create,drop,file,alter,index on *.* to sanxv identified by 'sprhoshii';
4.rootの削除
mysql> DELETE FROM mysql.user WHERE user='root';
この後、再起動しないとパスワード無しのrootでログインできます。
>FLUSH PRIVILEGES
しても、ダメだった気がする。
1.MySQLに接続
#mysql
2.全権限を与えたユーザ作成
mysql> GRANT ALL PRIVILEGES ON *.* TO twostroke@localhost IDENTIFIED BY 'yamahatzrdaisuki' WITH GRANT OPTION;
Query OK, 0 rows affected (0.01 sec)
3.作ったユーザでログイン
mysql> quit
#mysql -u twostroke -p
4.通常作業のユーザも作っておく
mysql> grant select,insert,delete,update,create,drop,file,alter,index on *.* to sanxv identified by 'sprhoshii';
4.rootの削除
mysql> DELETE FROM mysql.user WHERE user='root';
この後、再起動しないとパスワード無しのrootでログインできます。
>FLUSH PRIVILEGES
しても、ダメだった気がする。