![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MYSQL
MySQL
Tinko123
这个作者很懒,什么都没留下…
展开
-
【MySQL】MySQL启库失败故障处理两则
错误一:130516 20:47:36 InnoDB: Error: page 5 log sequence number 151 2771374516InnoDB: is in the future! Current system log sequence number 131 3791365897.InnoDB: Your database may be corrupt or you may have copied the InnoDBInnoDB: tablespace but not th原创 2020-07-22 09:53:05 · 2148 阅读 · 0 评论 -
【MySQL】MySQL之高可用MHA安装部署
授人以鱼不如授人以渔1、下载看官方文档啦,github上先看wiki:https://github.com/yoshinorim/mha4mysql-manager/wikiWIKI上列明了MHA的作用、优劣势、架构、原理、下载、安装、用例等等。右边栏点:Downloads,当前稳定版是0.56,点击下载。上边栏有Code,是最新的开发版。2、安装还是看官方文档啦https://github.com/yoshinorim/mha4mysql-manager/wiki右边栏有Install原创 2020-07-21 14:19:10 · 161 阅读 · 0 评论 -
【MySQL】MySQL密码验证插件-密码过期重置
MySQL密码验证插件MySQL密码过期参考:https://dev.mysql.com/doc/refman/5.7/en/validate-password-installation.html安全加固密码复杂度要求,则可以安装mysql密码验证插件:1、安装安装方法如下:(1)在线安装,重启后仍生效INSTALL PLUGIN validate_password SONAME ‘validate_password.so’;(2)修改my.cnf,重启生效[mysqld]plugin-原创 2020-06-15 15:44:05 · 378 阅读 · 0 评论 -
【MySQL】MySQL5.7社区版如何开启metadata_locks
问题:MySQL5.7社区版如何开启metadata_locks参考:https://dev.mysql.com/doc/refman/5.7/en/performance-schema-quick-start.htmlperformance_schema默认是启用的,但是默认只启用了部分工具(社区版MySQL5.7.28的performance_schema中目前共有1021个表)。若要将全部工具和消费者开启,则操作如下:mysql> UPDATE performance_schema.s原创 2020-06-11 17:07:02 · 763 阅读 · 0 评论 -
【MySQL】mysqldump的限制--注意事项
mysqldump的限制Restrictionsmysqldump does not dump the INFORMATION_SCHEMA, performance_schema, or sys schema by default. To dump any of these, name them explicitly on the command line. You can also name them with the --databases option. For INFORMATION_SCHE原创 2020-06-10 17:02:30 · 1019 阅读 · 0 评论 -
【MySQL】mysql表空间迁移
1、非general表空间的迁移将a实例的表的数据迁移到b实例上.1.在目标库b上创建一个相同结构的表2.在目标库b上执行ALTER TABLE t DISCARD TABLESPACE;3.在源库a上执行FLUSH TABLES t FOR EXPORT;生成.cfg文件 ----会有锁4.将.ibd文件和.cfg文件拷贝到目标库b文件下5.在源库a执行unlock tables;6.在目标库b执行ALTER TABLE t IMPORT TABLESPACE;2、genera原创 2020-06-10 16:53:39 · 679 阅读 · 0 评论 -
【MySQL】测试undo表空间独立管理时在线收缩
MySQL5.7原创 2020-06-11 14:53:05 · 140 阅读 · 0 评论 -
【MySQL】innodb_undo_tablespaces
MySQL5.7设置innodb_undo_tablespaces = 2 报错如下:2020-06-09T04:40:07.800321-05:00 0 [ERROR] InnoDB: Expected to open 2 undo tablespaces but was able to find only 0 undo tablespaces. Set the innodb_undo_tablespaces parameter to the correct value and retry. Sugge原创 2020-06-09 16:59:43 · 2556 阅读 · 0 评论 -
【MySQL】SSL
MySQL5.7默认开启SSL,如下:root (none)>show global variables like ‘%ssl%’;±--------------±----------------+| Variable_name | Value |±--------------±----------------+| have_openssl | YES || have_ssl | YES || ssl_ca原创 2020-06-09 15:32:11 · 101 阅读 · 0 评论 -
【MySQL】mysqldump参数分析
mysqldump重要参数分析:-F, --flush-logs Flush logs file in server before starting dump. Note that if you dump many databases at once (using the option --databases= or --all-databases), the logs will be原创 2020-06-28 15:41:19 · 135 阅读 · 0 评论 -
【MySQL】xtrabackup使用
xxx原创 2020-06-03 10:15:50 · 123 阅读 · 0 评论 -
【MySQL】MySQL的INNODB表空间
INNODB存储引擎的表空间:1、系统表空间2、File-Per-Table表空间3、普通表空间4、undo表空间5、临时表空间1、系统表空间The system tablespace is the storage area for the InnoDB data dictionary, the doublewrite buffer, the change buffer, and undo logs. It may also contain table and index data if ta原创 2020-05-25 11:06:31 · 181 阅读 · 0 评论 -
【MySQL】MySQL提示符
如何在MySQL提示符中显示当前用户、数据库、时间等信息mysql -uroot -p --prompt="\u@\h \r:\m:\s>"字母含义:u:用户h:IPr:时m :分s :秒也可以把参数加到my.cnf里面,需要重启数据库生效:[mysql]prompt=mysql(\u@\h \r:\m:\s)>日常使用,加个别名:alias mysqlr=‘mysql -uroot -ppassword --prompt="\u>"’...原创 2020-05-09 11:00:10 · 388 阅读 · 0 评论 -
【MySQL】mysql关于max_connections
MySQL报错:ERROR 1040 (HY000): Too many connections原因:用户连接数达到了max_connections的值,再连接就会报此错。关于max_connections:实际上允许max_connections + 1个客户端连接,额外的那一个连接是需要 SUPER权限才可以登录的,即如果usera有super权限,则它可以额外有一个连接额度,但如果...原创 2020-05-07 17:19:24 · 1522 阅读 · 0 评论