常用的linux命令

查看安装的系统信息:

   简单的信息:uname -a

   详细的信息:cat /proc/version

     cat /etc/issue

     lsb_release -a

 

Gentoo上安装mysql,直接运行:

  (1) bigner @localhost  / $ sudo emerge mysql

  (2) bigner @localhost  / $ sudo ebuild /var/db/pkg/dev-db/mysql- 5.0 . 44 /mysql- 5.0 . 44 .ebuild  config 

  (3) bigner @localhost  /etc/init.d $ sudo /etc/init.d/mysql start

  (4) bigner @localhost  / $ mysql -u root -p 

          (输入密码后就可以登录到mysql了,下面是mysql中的命令)

          show databases;

  (5) 让mysql自动run起来:

         bigner @localhost  / $ sudo rc-update add mysql  default  

 

查看命令的原始路径是什么:

  whereis mysql

  which mysql

你可能感兴趣的:(linux,mysql)