如何在Rebol中将密码与mysql://协议连接?

时间:2017-08-14 17:59:13

标签: rebol

我的密码包含"]"所以rebol不接受mysql:// user:password

如何将字符串与mysql://?

连接起来

1 个答案:

答案 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