我的密码包含"]"所以rebol不接受mysql:// user:password
如何将字符串与mysql://?
连接起来答案 0 :(得分:4)
您可以使用block form打开端口:
public class MvcApplication : System.Web.HttpApplication
{
...
private void ConfigureContainer()
{
var unityContainer = new UnityContainer();
var unityConfigSection = ConfigurationManager.GetSection("unity") as UnityConfigurationSection;
unityConfigSection.Configure(unityContainer); // exception thrown right here
ControllerBuilder.Current.SetControllerFactory(new UnityControllerFactory(unityContainer));
}
您可以检查my-database: open [
scheme: 'mysql
host: "localhost"
user: "user"
pass: "pass"
path: "/dbpath"
]
函数的输出,以了解Rebol如何将URL转换为端口规范:
DECODE-URL