Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有特殊字符“%”和“$”的 MySQL 密码。如何将它与 Symfony2/Doctrine2 和 .yml 文件一起使用?
我尝试: "pa%s$s" 'pa%s$s' pa%s$s 但它没有用。
答案是:转义:"%" char 使用:"%%"
示例:“pa%s%s”应为:“pa%%s%%s”