If you don't want to embed the database server password directly in your code as clear text, you might want to look at the MySQL password digest features.
如果不希望在代码中以明文形式直接嵌入数据库服务器密码,那么可以考虑使用MySQL的密码摘要特性。
The default installation of MySQL, particularly the empty root password and the potential vulnerability to buffer overflow, makes the database server an easy target for attacks.
MySQL 的默认安装,特别是根密码空缺和缓冲区溢出的潜在漏洞,使得这个数据库服务器成为容易攻击的目标。
Note that you'll need to change the username and password to the appropriate values for your MySQL account.
注意:你需要改变用户名和口令以适应你MySQL帐号。
应用推荐