摘要: 运行cmd进入命令行 用sqlplus sys/sys as sysdba; 用超级管理员登录 如果scott账户没问题可以用 sqlplus scott/tiger登录 如果存在先解锁scott用户 输入alter user scott account unlock; 解锁scott 设置密码 a 阅读全文
posted @ 2021-08-01 08:58 vip网管 阅读(237) 评论(0) 推荐(0)
摘要: 查询用户信息 id 用户名 查看登陆用户 who am i 切换用户 su 用户名 高级向低级别切换时不用输入密码,普通用户切换root时需输入密码 在命令行输入logout 或exit 注销 创建用户 默认会在/home/ 下创建同名用户的家目录 useradd tom 创建用户, 并指定用户家目 阅读全文
posted @ 2021-07-08 11:14 vip网管 阅读(640) 评论(0) 推荐(0)
摘要: 所有的命令只针对root shutdown -h now 立刻马上关机 halt 关机 (必须有root权限) shutdown -h 1 一分钟后关机 (必须有root权限) shutdown -r now 立刻马上重启 reboot 重启 在操作重启或关机之前一定要用sync命令 sync 把内 阅读全文
posted @ 2021-07-08 10:34 vip网管 阅读(1032) 评论(0) 推荐(0)
摘要: vi 或者vim 文件名 刚进去 就是一般模式,按 i I , a A , o O 切换成编辑模式 按esc退出编辑模式 按: 进入命令行模式 1、在一般模式拷贝当前行 yy,拷贝当前行向下的5行 5yy,粘贴 输入p 2、在一般模式删除当前行 dd,删除当前行向下的5行 5dd 3、在命令行 设置 阅读全文
posted @ 2021-07-05 21:47 vip网管 阅读(132) 评论(0) 推荐(0)
摘要: 1、自行创建测试数据 创建学生表mysql> create table student(sid int not null primary key auto_increment, sname varchar(20), gender enum('男','女'), class_id int ); 插入数据 阅读全文
posted @ 2021-06-24 22:05 vip网管 阅读(62) 评论(0) 推荐(0)
摘要: Mysql常用命令 在windows命令提示行下改密码Mysqldamin -u root -proot password 新密码,新密码 mysql -uroot -proot 登陆 在mysql里面 修改密码alter user user() identified by '123'; 把root 阅读全文
posted @ 2021-06-23 07:08 vip网管 阅读(150) 评论(0) 推荐(0)