1、首先我通过命令行登录mysql,执行命令 show databases; 查看有多少个数据库
3、执行lock table ceshi read; 给ceshi表加上读的锁。
5、给表加上表写锁lock table ceshi write;