2011年3月17日木曜日

Mysql権限付与、パス

■Mysql
・ルートでログイン

・ユーザー作成
CREATE USER 'jeffrey'@'localhost' IDENTIFIED BY 'mypass';

・権限付与
grant all privileges on *.* to 'user'@'localhost' identified by 'pass';

・テーブルリフレッシュ
flush privileges;

・権限の確認
show grants for user@localhost;


■UNIX
・現在のパスの確認
printenv PATH

・bashのパスファイルを生成する
.bash_profile

・.bash_profile内にパスを書き込む
exprot PATH=$PATH:/Application/XAMPP/xampfiles/bin

・ターミナルを立ち上げ直す
・パス確認
printenv PATH

※カレントディレクトリ確認
pwd(print working directory)

■MacのFinder上でドット付きファイルを表示させる方法
defaults write com.apple.finder AppleShowAllFiles TRUE
「killall Finder」で設定を反映
※戻すとき
defaults write com.apple.finder AppleShowAllFiles FALSE

0 件のコメント:

コメントを投稿