MYSQL优化


MYSQL性能监控profile# 显示性能信息官网 https://dev.mysql.com/doc/refman/8.0/en/show-profile.html# mysql5版本使用# set profiling=on;# 展示最近一条语句运行的时间情况show profile;star

mysql优化建议


mysql优化建议1.查询SQL尽量不要使用select * ,而是select具体字段正例select a.name,a.age from student a;反例select * from student;理由:只取需要的字段,节省资源、减少网络开销。select * 进行查询时,很可能就不会使

mysql数据库批量更新数据


– 更新site_reosurce_moniotr的时间,执行一次就加一天时间delimiter // ; drop procedure if exists test; create procedure test(

mysql


--输入密码### 修改用户密码```shellupdate mysql.user set authentication_string=password('xqm@123456') where User='root' and Host='localhost';GRANT ALL PRIVILEGES