diff --git a/Pasted image 20250816212609.png b/Pasted image 20250816212609.png new file mode 100644 index 0000000..022b24a Binary files /dev/null and b/Pasted image 20250816212609.png differ diff --git a/Pasted image 20250816221224.png b/Pasted image 20250816221224.png new file mode 100644 index 0000000..ec4209a Binary files /dev/null and b/Pasted image 20250816221224.png differ diff --git a/Pasted image 20250817093136.png b/Pasted image 20250817093136.png new file mode 100644 index 0000000..e95a7e2 Binary files /dev/null and b/Pasted image 20250817093136.png differ diff --git a/centos7.jpg b/centos7.jpg new file mode 100644 index 0000000..c18e60a Binary files /dev/null and b/centos7.jpg differ diff --git a/work常用/数据库/mysql 常用.md b/work常用/数据库/mysql 常用.md index 3683b73..23ed8eb 100644 --- a/work常用/数据库/mysql 常用.md +++ b/work常用/数据库/mysql 常用.md @@ -18,8 +18,10 @@ mysqldump -u 用户名 -p 数据库名 表名1 表名2 > 导出的文件名.sql mysqldump -u 用户名 -p -d 数据库名 > 导出的文件名.sql 4.导出所有数据库 mysqldump -u 用户名 -p --all-databases > 导出的文件名.sql +5.指定ip +mysqldump -u 用户名 -p 数据库名 -h 127.0.0.1 > 导出的文件名.sql ``` -`注意:在导出大型数据库时,建议使用--quick或--opt选项来避免将整个结果集装入内存` +`注意:在导出大型数据库时,建议使用--quick或--opt选项来避免将整个结果集装入内存;--single-transaction 防止出现用户锁表` + 导入数据 ```shell diff --git a/公司环境/Linux/虚拟机网络配置.canvas b/公司环境/Linux/虚拟机网络配置.canvas index 296a12b..0bc50be 100644 --- a/公司环境/Linux/虚拟机网络配置.canvas +++ b/公司环境/Linux/虚拟机网络配置.canvas @@ -1,6 +1,15 @@ { "nodes":[ - {"id":"3ce0168c0dcef966","type":"file","file":"虚拟机网络配置.png","x":-340,"y":-300,"width":400,"height":333} + {"id":"a47cc169dbf16469","type":"file","file":"centos7.jpg","x":-140,"y":-880,"width":1096,"height":680}, + {"id":"e1819898bf7e757c","type":"file","file":"Pasted image 20250816212609.png","x":-700,"y":-880,"width":400,"height":313}, + {"id":"3ce0168c0dcef966","type":"file","file":"虚拟机网络配置.png","x":-1240,"y":-460,"width":446,"height":371}, + {"id":"9a8c81bf32222931","type":"file","file":"Pasted image 20250817093136.png","x":-720,"y":-460,"width":399,"height":184}, + {"id":"97427625e0af72e6","type":"file","file":"Pasted image 20250816221224.png","x":-720,"y":-160,"width":400,"height":376} ], - "edges":[] + "edges":[ + {"id":"7338a8dd93461260","fromNode":"a47cc169dbf16469","fromSide":"left","toNode":"e1819898bf7e757c","toSide":"right"}, + {"id":"ffab384fc4942681","fromNode":"a47cc169dbf16469","fromSide":"left","toNode":"97427625e0af72e6","toSide":"right"}, + {"id":"c0a48994b7ab73b8","fromNode":"9a8c81bf32222931","fromSide":"left","toNode":"3ce0168c0dcef966","toSide":"right"}, + {"id":"9085249557342010","fromNode":"a47cc169dbf16469","fromSide":"left","toNode":"9a8c81bf32222931","toSide":"right"} + ] } \ No newline at end of file diff --git a/问题排查/mysql/mysql8 忘记密码处理步骤.md b/问题排查/mysql/mysql8 忘记密码处理步骤.md index 2bab013..930738f 100644 --- a/问题排查/mysql/mysql8 忘记密码处理步骤.md +++ b/问题排查/mysql/mysql8 忘记密码处理步骤.md @@ -2,7 +2,7 @@ `service mysql stop` 2. 用安全模式启动 -`sudo mysqld_safe --skip-grant-tables--user=mysql&` +`sudo mysqld_safe --skip-grant-tables --user=mysql&` 3. 无密码登陆 `mysql -u root` @@ -11,6 +11,8 @@ ```sql FLUSH PRIVILEGES; ALTER USER 'root'@'localhost' IDENTIFIED BY '密码'; +# 修复因为密码插件导致的问题 +ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '密码'; EXIT; ```