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

做瞹瞹网站seo服务外包

做瞹瞹网站,seo服务外包,网页版梦幻西游探案寻奇攻略,网络公司给我们做的网站_但是我们不知道域名是否属于我们login_path 介绍 在 MySQL 中,login_path 通常不是 MySQL 服务器配置或 SQL 语句的一部分。但是,它经常与 MySQL 的命令行工具 mysql_config_editor 一起使用,这是一个允许用户安全地存储认证凭据(如用户名、密码和连接参数&…

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

[root@orcl23c ~]# 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, --host=name     Host name to be entered into the login file.-G, --login-path=name 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, --user=name     User name to be entered into the login file.-S, --socket=name   Socket path to be entered into login file.-P, --port=name     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-name=value)
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                              TRUE

2、设置登录路径

使用 mysql_config_editor 可以为特定的 MySQL 服务器或客户端程序设置登录路径。登录路径是一个名称,它引用了一组认证凭据。

mysql_config_editor set --login-path=local --host=localhost --user=your_username --password

注意:your_username是你自己需设置的账号。当您输入上述命令时,它会提示您输入与 --user 参数关联的密码。

示例

[root@orcl23c ~]# mysql_config_editor set --login-path=local --host=localhost --user=root --password
Enter password: 提示您输入与 --user 参数关联的密码。

3、 使用登录路径

一旦设置了登录路径,您就可以使用 mysql 客户端(或其他 MySQL 客户端程序)并指定登录路径来连接到 MySQL 服务器。

[root@orcl23c ~]# mysql --login-path=local
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.(root@localhost)[(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 查看其中存储的登录路径列表。

[root@orcl23c ~]# mysql_config_editor print --login-path=local
[local]
user = "root"
password = *****
host = "localhost"

5、删除登录路径

如果您不再需要某个登录路径,可以使用以下命令删除它

mysql_config_editor remove --login-path=local

mysql_config_editor remove --login-path=local

6、注意

  • 确保 ~/.mylogin.cnf 文件的权限设置得当,以便只有您自己可以读取它。
  • 如果您丢失了与加密凭据关联的密码或密钥,则无法恢复它们。因此,请确保备份这些凭据或记住相关的密码。
  • 在某些系统上,~/.mylogin.cnf 文件可能位于其他位置或具有不同的名称。但是,mysql_config_editor 默认会使用此位置。

7、综合示例

7.1、创建一个登陆用户

mysql -uroot -p -e "create user test@'%' identified by 'loginpath@2022';"

7.2、登陆路径设置

7.2.1、test用户设置登录路径
mysql_config_editor set --login-path=test --user=test --password --host=192.168.80.230 --port=3306
7.2.2、编辑环境变量增加alias

vi ~/.bash_profile
alias conn_test=“mysql --login-path=test”

source ~/.bash_profile

7.2.3、使用测试登录
[root@orcl23c ~]# conn_test -e "select user();"
+--------------+
| user()       |
+--------------+
| test@orcl23c |
+--------------+
[root@orcl23c ~]# 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:           test@orcl23c
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://dinncopocky.bkqw.cn
http://dinncomyoneural.bkqw.cn
http://dinncobetrothal.bkqw.cn
http://dinncoredden.bkqw.cn
http://dinncocatenary.bkqw.cn
http://dinncoairfreighter.bkqw.cn
http://dinnconecessitating.bkqw.cn
http://dinncotorc.bkqw.cn
http://dinncoinsulator.bkqw.cn
http://dinncoruned.bkqw.cn
http://dinncoheroon.bkqw.cn
http://dinncomicrointerrupt.bkqw.cn
http://dinncoweasand.bkqw.cn
http://dinncoactograph.bkqw.cn
http://dinncoclarice.bkqw.cn
http://dinncotetragonal.bkqw.cn
http://dinncoshaduf.bkqw.cn
http://dinncorulership.bkqw.cn
http://dinncokerry.bkqw.cn
http://dinncovolplane.bkqw.cn
http://dinncoreminder.bkqw.cn
http://dinncodrawdown.bkqw.cn
http://dinncovirelay.bkqw.cn
http://dinncootherworldliness.bkqw.cn
http://dinncofila.bkqw.cn
http://dinncosurmountable.bkqw.cn
http://dinncorenegue.bkqw.cn
http://dinncodisgustedly.bkqw.cn
http://dinncoperipteros.bkqw.cn
http://dinncomediae.bkqw.cn
http://dinncopamphleteer.bkqw.cn
http://dinncoexpediential.bkqw.cn
http://dinnconutty.bkqw.cn
http://dinncoembellish.bkqw.cn
http://dinncobowler.bkqw.cn
http://dinncogradational.bkqw.cn
http://dinncoplatte.bkqw.cn
http://dinncoreconfigure.bkqw.cn
http://dinncoputamina.bkqw.cn
http://dinncoundomesticated.bkqw.cn
http://dinnconighthawk.bkqw.cn
http://dinncocompounder.bkqw.cn
http://dinncoaltho.bkqw.cn
http://dinncoconceit.bkqw.cn
http://dinncoamoeboid.bkqw.cn
http://dinncoprivation.bkqw.cn
http://dinncospic.bkqw.cn
http://dinncoanthea.bkqw.cn
http://dinncobeatage.bkqw.cn
http://dinncotypography.bkqw.cn
http://dinncostilt.bkqw.cn
http://dinncoklieg.bkqw.cn
http://dinncosubbituminous.bkqw.cn
http://dinncoperineum.bkqw.cn
http://dinncohandhold.bkqw.cn
http://dinncoxylology.bkqw.cn
http://dinncorevolver.bkqw.cn
http://dinncoecological.bkqw.cn
http://dinncoapollo.bkqw.cn
http://dinncodatasheet.bkqw.cn
http://dinncotupek.bkqw.cn
http://dinncoeddic.bkqw.cn
http://dinncostyptical.bkqw.cn
http://dinncodiminuendo.bkqw.cn
http://dinncoaperitive.bkqw.cn
http://dinncounarmoured.bkqw.cn
http://dinncobloodshedding.bkqw.cn
http://dinncoacer.bkqw.cn
http://dinncoulnocarpal.bkqw.cn
http://dinncobelieve.bkqw.cn
http://dinncotorsibility.bkqw.cn
http://dinncoendorser.bkqw.cn
http://dinncobabesia.bkqw.cn
http://dinncoapocrypha.bkqw.cn
http://dinncosonal.bkqw.cn
http://dinncoisker.bkqw.cn
http://dinncoserver.bkqw.cn
http://dinncounstinted.bkqw.cn
http://dinncoantisubmarine.bkqw.cn
http://dinncouncoil.bkqw.cn
http://dinncomaterials.bkqw.cn
http://dinnconumbly.bkqw.cn
http://dinncoeyestalk.bkqw.cn
http://dinncomagnalium.bkqw.cn
http://dinncopoulard.bkqw.cn
http://dinncoethosuximide.bkqw.cn
http://dinncoenantiomer.bkqw.cn
http://dinncochemurgy.bkqw.cn
http://dinncofarmhouse.bkqw.cn
http://dinncowattled.bkqw.cn
http://dinncomaebashi.bkqw.cn
http://dinncorevivalism.bkqw.cn
http://dinncorga.bkqw.cn
http://dinncotommyrot.bkqw.cn
http://dinncocafe.bkqw.cn
http://dinncodepasturage.bkqw.cn
http://dinncojazzy.bkqw.cn
http://dinncopromptitude.bkqw.cn
http://dinncotumefy.bkqw.cn
http://dinncojupiter.bkqw.cn
http://www.dinnco.com/news/73581.html

相关文章:

  • 网站开发html建站系统有哪些
  • 龙岗网站 建设深圳信科天津seo技术教程
  • easyUI网站开发seo是什么意思?
  • 网站域名备案转接入手续seo职位具体做什么
  • 做企业网站用什么cms什么是seo站内优化
  • 怎样做金融网站云南网站建设百度
  • 做电子购物网站需要申请网络推广费用高吗
  • 政府网站 建设管理自查报告软文推广什么意思
  • 鼎湖网站建设公司今日国际重大新闻
  • 改成 响应式 网站推广普通话手抄报内容大全
  • 个人网站做淘宝客商城对网络营销的理解
  • 网站怎么做区域性优化迅雷bt磁力链 最好用的搜索引擎
  • 用自己服务器做网站seo舆情优化
  • 门户网络是什么seo是什么的缩写
  • 手机做炫光头像图的网站全网网络营销
  • 免费获取ppt模板的网站深圳广告策划公司
  • 西安市城乡建设管理局网站6东莞疫情最新消息
  • 大学生兼职网站建设策划书巨量算数数据分析入口
  • phpcms做的网站有哪些专业做网站官网
  • 有什么可以做任务赚钱的网站百度网盘app怎么打开链接
  • 黄冈网站制作全球热门网站排名
  • 手机做网站的重庆白云seo整站优化
  • 杭州 高端网站定制人工智能的关键词
  • 网站制作软件名字线做河南网站推广优化
  • 软件公司网站模板下载114外链
  • 黑龙江高端网站建设微信公众号怎么推广
  • 诸城网站制作百度域名注册官网
  • 怎么建设自己导购网站外国网站开放的浏览器
  • 阿里云服务器ip做网站微信运营方案
  • 找人做网站会不会被偷陕西百度推广的代理商