客户的云学堂E0306P04,教室状态显示为正在上课,重启服务器无效,
参照《云学堂管理平台教室状态显示不正确的问题》https://zhiliao.h3c.com/Theme/details/34769进行处理
需要登陆数据库,mysql –u horizon –p horizon,反复提示密码不对,
root@cvknode:~# mysql -u horizon -p horizon
Enter password:
ERROR 1045 (28000): Access denied for user 'horizon'@'localhost' (using password: YES)
请教CloudClass E0306P04 mysq用户名密码是horizon吗?谢谢
(0)
最佳答案
SSH登录云学堂管理平台主机后台,依次执行如下操作:
登录数据库mysql -u horizon –p
根据提示输入密码:horizon
输入use HORIZON;
然后使用select * from horizon_classroomstage;查询下教室的state是否为0即空闲状态:
mysql> select * from horizon_classroomstage;
+----+-------+---------------------+--------------+-----------+
| id | state | updated_at | classroom_id | course_id |
+----+-------+---------------------+--------------+-----------+
| 1 | 0 | 2017-08-02 16:01:30 | 1 | NULL |
+----+-------+---------------------+--------------+-----------+
1 row in set (0.00 sec)
如果不为0则使用update horizon_classroomstage set state='0' where id='1';将教室的状态修改为0:
mysql> update horizon_classroomstage set state='0' where id='1';
Query OK, 1 row affected (0.06 sec)
Rows matched: 1 Changed: 1 Warnings: 0
再使用select * from horizon_classroomstage;查询下教室的state是否已修改为0:
mysql> select * from horizon_classroomstage;
+----+-------+---------------------+--------------+-----------+
| id | state | updated_at | classroom_id | course_id |
+----+-------+---------------------+--------------+-----------+
| 1 | 0 | 2017-08-02 16:04:04 | 1 | 1 |
+----+-------+---------------------+--------------+-----------+
1 row in set (0.00 sec)
最后退出登录mysql> quit
数据库修改完成之后刷新浏览器页面重新登录云学堂管理平台即可。
(0)
感谢指导
mysql> update hroizon_classroom stage set state='0'where id='1';
-> ^C
mysql> select * from horizon_classroomstage;
+----+-------+----------------------------+--------------+-----------+------------+
| id | state | updated_at | classroom_id | course_id | teacher_id |
+----+-------+----------------------------+--------------+-----------+------------+
| 1 | 1 | 2023-09-01 07:00:03.178820 | 1 | 2 | NULL |
+----+-------+----------------------------+--------------+-----------+------------+
1 row in set (0.00 sec)
mysql> update horizon_classroomstage set state='0' where id='1';
Query OK, 1 row affected (0.03 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> select * from horizon_classroomstage;
+----+-------+----------------------------+--------------+-----------+------------+
| id | state | updated_at | classroom_id | course_id | teacher_id |
+----+-------+----------------------------+--------------+-----------+------------+
| 1 | 0 | 2023-09-01 07:00:03.178820 | 1 | 2 | NULL |
+----+-------+----------------------------+--------------+-----------+------------+
1 row in set (0.00 sec)
mysql>
我最终用这条命令修改教室状态成功
update horizon_classroomstage set state='0' where id='1';
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
感谢指导