Advertisement
quyennvse02884

CentOS

Feb 1st, 2016
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. *CentOS commanline
  2. - [Moving or Rename file or dir] : mv cakephp-master cakephp
  3. - [Copy file]: cp -i /home/levan/kdenlive/untitelds.mpg /media/sda3/SkyDrive/
  4. - [Change the file permissions]: chmod -R 777 cakephp/app/tmp
  5. Reference: http://hocvps.com/21-cau-lenh-linux-phai-nho/
  6.  
  7. *SQL on CentOS:
  8. Reference: http://hocvps.com/cac-cau-lenh-mysql-can-phai-biet/
  9.  
  10. * ACCESS mysql throught host/ip: mysql -h192.168.168.211 -uroot -p
  11. * GRANT role in MySQL:
  12.  - select user,host,passwd from mysql.user;
  13.  - show grants for  root@'localhost';
  14.  - GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*04E6E1273D1783DF7D57DC5479FE01CFFDFD0058' WITH GRANT OPTION (localhost co the thay bang mot host. VD: 192.168.%)
  15.  - show processlist;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement