1> sc delete mysql: 清空mysql服务重新安装;
2> 事务:
Set autocommit =0; --关闭自动提交
Start transaction; --开启一个事务
Update account set money=money-500 where name=’A’; --‘A’ 减500
Update account set money=money+500 where name=’B’; --‘B’ 加500
Commit; 提交
Rollback; 回滚
Set autocommit =1; --重开启自动提交
3> 备份及导入