MySQL
安装
mysql_secure_installation
mysql server
# 法1
sudo mysql.server start --user=root #开启
sudo mysql.server stop # 关闭
# 法2
sudo mysqld --console --user=root # 开启
sudo mysqladmin -u root shutdown -p # 关闭
Linux命令行结构
$ command [[-]option(s)] [option argument(s)] [command argument(s)]
基本指令
1.Linux三大查询命令man,info,–help
man ls
man passwd
info pwd
who --help
man page:manual page
2.uname(short for unix name)
parameter:
-n(-nodename)
-p(-processor)
3.cal command is a calendar command in Linux which is used to see the calendar of a specific month or a whole year.
4.
Command | Interpretation |
---|---|
pwd | print working directory |
mkdir | make directory |
cd | change directory |
rmdir | remove(empty)directory |