mysql -uroot -proot 例子: 创建用户mysql> CREATE USER 'xiaoyaoji'@'%' IDENTIFIED BY 'xiaoyaoji';Query OK, 0 rows affected (0.00 sec)查看权限mysql> show grants for 'xiaoyaoji'@'%';+---------------------------------------+| Grants for xiaoyaoji@% |+-------------…
修改主机名:vim /etc/sysconfig/network 1.添加用户,首先用adduser命令添加一个普通用户,命令如下: #adduser tommy //添加一个名为tommy的用户 #passwd tommy //修改密码 Changing password for user tommy. New UNIX password: //在这里输入新密码 Retype new UNIX password: //再次输入新密码 passwd: all authenticat…
linux添加新用户使用 useradd -----create a new user or update default new user information 删除用户使用userdel -----delete a user account and related files useadd options: -c, --comment COMMENT set the GECOS field for the new user account -d, --home-dir HOME_DIR…