MySQL忘记root密码--重启重置root密码
1、skip-grant-tables
我们常用的方法是使用skip-grant-tables
选项,为了安全起见,通常加上skip-networking
,mysqld 不侦听任何TCP/IP连接请求。
1)修改my.cn
f配置文件,在mysqld
选项中添加skip-grant-tables
和skip-networking
。
2)再重启mysqld server
。
1、skip-grant-tables
我们常用的方法是使用skip-grant-tables
选项,为了安全起见,通常加上skip-networking
,mysqld 不侦听任何TCP/IP连接请求。
1)修改my.cn
f配置文件,在mysqld
选项中添加skip-grant-tables
和skip-networking
。
2)再重启mysqld server
。
linux下kill掉某个用户的所有进程的简单快捷的方法,某日一用户最大连接数超限了,无法正常登录,只能用root kill掉其所有的进程,简单的命令如下:
1 | 1. pkill # pkill -u username |
然后轻松搞定,用root修改最大连接数。
1 | #!/bin/sh |
1 | USE [master] |
文章来源:https://docs.oracle.com/cd/E11882_01/server.112/e41134/whatsnew.htm#SBYDB5107
New 11.2 Features Common to Redo Apply and SQL Apply
FAL_CLIENT
database initialization parameter is no longer required.LOG_ARCHIVE_DEST_10
to LOG_ARCHIVE_DEST_1
.ALTER SYSTEM FLUSH REDO
SQL statement can be used at failover time to flush unsent redo from a mounted primary database to a standby database, thereby allowing a zero data loss failover to be performed even if the primary database is not running in a zero data loss data protection mode. See Section 8.2.2 for more information.