连接MySQL数据库时如何隐藏登录凭据 [英] How to hide the logon credentials when connecting to MySQL database

查看:360
本文介绍了连接MySQL数据库时如何隐藏登录凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在建立与MySQL数据库的连接时,有没有办法可以隐藏登录凭据。



我知道如何连接使用:

Is there any way that one can "hide" the login credentials when making a connection to a MySQL database.

I know how to connect using:

"database=<DBname>;server=<HOST name>;User Id=<USER name>;Pwd=<Password>"





由于信息在我的情况下得到硬编码,我想知道是否有更好的方法来隐藏登录信息。



反馈意见。



T



Since the information gets hard coded in my case, I was wondering if there was any better way to hide logon information.

Feedback appreciated.

T

推荐答案

这篇关于连接MySQL数据库时如何隐藏登录凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆