XE8UP1开发的Datasnap服务器程序。 目标机环境: Windows Server 2008,MySQL5.6.25。
服务器TSQLConnection初始化函数: function TdtmdlSvrCon.Connect_MySql_WxDb: Boolean; begin conWxMySqllink.Close; conWxMySqllink.DriverName := 'MySQL'; conWxMySqllink.ConnectionName := 'MSSQLConnection'; conWxMySqllink.Params.Values['HostName'] := 'localhost'; conWxMySqllink.Params.Values['DataBase'] := 'dbname_sys'; conWxMySqllink.Params.Values['User_Name'] := 'root'; conWxMySqllink.Params.Values['Password'] := '12345'; conWxMySqllink.Params.Values['ConnectTimeout'] := '30'; conWxMySqllink.Params.Values['ServerCharSet'] := 'utf8'; conWxMySqllink.LoginPrompt := False; try conWxMySqllink.Open; Result := true; LogInfo('[MySql服务器启动成功]'); except on e: Exception do begin LogInfo(':●:[MySQL启动失败]'+e.Message); Result := False; end; end; finally myIniFile.Free; end; end;
错误提示: DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, of the wrong version, or the driver may be missing from the system path.
本机安装XE8 UP1,+MySQL5.6.26 在设计状态,把TSQLConnection相关信息都设置好,然后Connected改为True,也出错: DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, of the wrong version, or the driver may be missing from the system path.