ODBC connection to MYSQL/win7 lazarus / 16-Databases ---------------------------------------------------------------------- BubikolRamios · 2016-08-12 19:23 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   //next line works OK  //ODBCConnection.DatabaseName:='foodsn'; //Name of ODBC System DSN  ODBCConnection.Driver := 'MySQL ODBC 5.0 Driver';  ODBCConnection.UserName:='uid';  ODBCConnection.Password:='pwd';  ODBCConnection.Params.Add('SERVER=foo');  ODBCConnection.Params.Add('PORT=3306');  ODBCConnection.Params.Add('DATABASE=information_schema');  ...SQLQuery1.Open; // error as below  QuoteProject MySQL raised exception class ,EODBCException' with message: Could not connect with connection string "DRIVER=MySQL ODBC 5.0 Driver ;UID=uid;PWD=pwd;SERVER=foo;PORT=3306;DATABASE=information_schema;". ODBC error details: LastReturnCode: SQL.ERROR; Record 1: SqlState: IM002; NativeErron 0; Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified What to do ? ---------------------------------------------------------------------- LacaK · 2016-08-22 08:17 It should work. I have used: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i      ODBC1.Driver := 'MySQL ODBC 5.3 Unicode Driver'; // or 'MySQL ODBC 5.3 ANSI Driver'     ODBC1.Params.Add('SERVER=localhost');     ODBC1.Params.Add('PORT=3306');     ODBC1.Params.Add('DATABASE=test');     ODBC1.Params.Add('charset=utf8');  And it connects sucessfully! Please check in your ODBC driver manager names of drivers (in Windows ODBC Driver manager it is "Driver" tab) And check if your application and drivers are both 32bit or both 64bit!