当前位置: 首页 > news >正文

同一个公司可以做几个网站wordpress step 2

同一个公司可以做几个网站,wordpress step 2,wordpress官网,广东广州login_path 介绍 在 MySQL 中#xff0c;login_path 通常不是 MySQL 服务器配置或 SQL 语句的一部分。但是#xff0c;它经常与 MySQL 的命令行工具 mysql_config_editor 一起使用#xff0c;这是一个允许用户安全地存储认证凭据#xff08;如用户名、密码和连接参数…login_path 介绍 在 MySQL 中login_path 通常不是 MySQL 服务器配置或 SQL 语句的一部分。但是它经常与 MySQL 的命令行工具 mysql_config_editor 一起使用这是一个允许用户安全地存储认证凭据如用户名、密码和连接参数的工具。 mysql 的 client 工具都能使用 login-path如 mysql、mysqldump、mysqladmin、mysqlbinlog、mysql_upgrade、mysqld_safe、mysqld_multi、mysqldumpslow 等等。 mysql_config_editor 介绍 mysql_config_editor 是 MySQL 提供的一个实用程序它允许用户安全地存储加密的认证凭据如用户名、密码和服务器连接参数在 ~/.mylogin.cnf 文件中。这样做的好处是用户可以在不使用命令行参数或选项的情况下连接到 MySQL 服务器同时避免在脚本或历史记录中暴露敏感信息。 mysql_config_editor 允许用户设置和管理登录路径login paths这些登录路径存储在用户主目录下的 ~/mylogin.cnf 文件中。使用登录路径用户可以在命令行上无需输入用户名、密码或其他连接参数即可连接到 MySQL 服务器。 使用 mysql_config_editor 1、mysql_config_editor使用帮助 mysql_config_editor set --help [rootorcl23c ~]# mysql_config_editor set --help mysql_config_editor Ver 8.4.0 for Linux on x86_64 (MySQL Community Server - GPL) Copyright (c) 2012, 2024, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.MySQL Configuration Utility.Description: Write a login path to the login file. Usage: mysql_config_editor [program options] [set [command options]]-?, --help Display this help and exit.-h, --hostname Host name to be entered into the login file.-G, --login-pathname Name of the login path to use in the login file. (Default: client)-p, --password Prompt for password to be entered into the login file.-u, --username User name to be entered into the login file.-S, --socketname Socket path to be entered into login file.-P, --portname Port number to be entered into login file.-w, --warn Warn and ask for confirmation if set command attempts tooverwrite an existing login path (enabled by default).(Defaults to on; use --skip-warn to disable.)Variables (--variable-namevalue) and boolean options {FALSE|TRUE} Value (after reading options) --------------------------------- ---------------------------------------- host (No default value) login-path client user (No default value) socket (No default value) port (No default value) warn TRUE2、设置登录路径 使用 mysql_config_editor 可以为特定的 MySQL 服务器或客户端程序设置登录路径。登录路径是一个名称它引用了一组认证凭据。 mysql_config_editor set --login-pathlocal --hostlocalhost --useryour_username --password注意your_username是你自己需设置的账号。当您输入上述命令时它会提示您输入与 --user 参数关联的密码。 示例 [rootorcl23c ~]# mysql_config_editor set --login-pathlocal --hostlocalhost --userroot --password Enter password: 提示您输入与 --user 参数关联的密码。3、 使用登录路径 一旦设置了登录路径您就可以使用 mysql 客户端或其他 MySQL 客户端程序并指定登录路径来连接到 MySQL 服务器。 [rootorcl23c ~]# mysql --login-pathlocal Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 16 Server version: 8.4.0 MySQL Community Server - GPLCopyright (c) 2000, 2024, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.Type help; or \h for help. Type \c to clear the current input statement.(rootlocalhost)[(none)] show databases; -------------------- | Database | -------------------- | db01 | | information_schema | | mysql | | performance_schema | | sys | -------------------- 5 rows in set (0.01 sec) 或者如果您正在使用其他客户端如 mysqldump、mysqladmin、mysqlbinlog等您也可以这样做。 4、查看存储的凭据 尽管您不应该直接编辑 ~/.mylogin.cnf 文件因为它包含加密的数据但您可以使用 mysql_config_editor 查看其中存储的登录路径列表。 [rootorcl23c ~]# mysql_config_editor print --login-pathlocal [local] user root password ***** host localhost5、删除登录路径 如果您不再需要某个登录路径可以使用以下命令删除它 mysql_config_editor remove --login-pathlocal mysql_config_editor remove --login-pathlocal6、注意 确保 ~/.mylogin.cnf 文件的权限设置得当以便只有您自己可以读取它。如果您丢失了与加密凭据关联的密码或密钥则无法恢复它们。因此请确保备份这些凭据或记住相关的密码。在某些系统上~/.mylogin.cnf 文件可能位于其他位置或具有不同的名称。但是mysql_config_editor 默认会使用此位置。 7、综合示例 7.1、创建一个登陆用户 mysql -uroot -p -e create user test% identified by loginpath2022;7.2、登陆路径设置 7.2.1、test用户设置登录路径 mysql_config_editor set --login-pathtest --usertest --password --host192.168.80.230 --port33067.2.2、编辑环境变量增加alias vi ~/.bash_profile alias conn_test“mysql --login-pathtest” source ~/.bash_profile 7.2.3、使用测试登录 [rootorcl23c ~]# conn_test -e select user(); -------------- | user() | -------------- | testorcl23c | -------------- [rootorcl23c ~]# conn_test -e \s -------------- mysql Ver 8.4.0 for Linux on x86_64 (MySQL Community Server - GPL)Connection id: 21 Current database: Current user: testorcl23c SSL: Cipher in use is TLS_AES_128_GCM_SHA256 Current pager: stdout Using outfile: Using delimiter: ; Server version: 8.4.0 MySQL Community Server - GPL Protocol version: 10 Connection: 192.168.80.230 via TCP/IP Server characterset: utf8mb4 Db characterset: utf8mb4 Client characterset: utf8mb4 Conn. characterset: utf8mb4 TCP port: 3306 Binary data as: Hexadecimal Uptime: 12 days 21 hours 18 min 46 secThreads: 2 Questions: 84 Slow queries: 0 Opens: 237 Flush tables: 3 Open tables: 156 Queries per second avg: 0.000 --------------
http://www.dnsts.com.cn/news/277011.html

相关文章:

  • 顺义哪里有做网站设计的分类网站作用
  • 网页制作与网站建设设计价格宣传类网站
  • 换域名对网站的影响微信小程序注册费用
  • 石家庄做网站好的网络技术有限公司农机网站模版
  • 如何做淘宝客自己的网站wordpress获取别名
  • 网站没有备案会被降权吗建网站公司郑州
  • 电商网站开发数据库设计天津网站建设 文率科技
  • 甘肃省住房和城乡建设部网站首页南宁网站建设哪家公司好
  • 商城建设网站网站开发毕业设计评审表
  • 电商网站建设代码大全自己搭建的网站可以收费吗
  • 甘肃省建设工程安质局网站上住房和城乡建设部网站
  • 建设银行手机银行网站用户名脑叶公司手机版下载
  • 商城开发网站建设wordpress缩略图插件
  • 手机网站维护费服装商城的网站策划书
  • 国外时尚设计网站不属于网站建设方式的是
  • 公司网站制作费计入会计什么科目电商店铺设计
  • 泗水县建设局的网站怎么打开平面设计h5指的是什么
  • 什么网站百度收录好网站开发需要多少钱怎样
  • 网站页面总数旅游网页网站开发的目的和意义
  • 百度能搜到自己的网站石家庄有哪些大型互联网公司
  • 珠海建设网站首页2024年全员核酸
  • 重点建设学科网站做网站时怎么选择数据库类型
  • 淮北网站网站建设html代码模板免费
  • 餐饮网站建设背景怎么弄一个网站
  • 西安做网站建设的网站制作公透明清晰
  • 广州公司网站设计制作手机上怎么支持wap网站
  • 企业网站网络营销案例分析什么网站可以做项目
  • 新郑建设局网站wordpress 3.4漏洞
  • 做外贸网站那家专业做产品目录设计用什么网站好
  • wordpress导出网站最近的军事新闻有哪些