![]() You can get Xcode for free in the AppStore and install the Command Line Tools from Preferences -> Downloads. To build psqlODBC in Mac OS X, you need to have Xcode and the “Command Line Tools” additional component installed, so that the gcc compiler is available. Verify that you have the file psqlodbcw.so in the /usr/local/lib directory. Extract this tarball to a directory in your hard drive and open a terminal and cd into that directory. As of this writing the latest version corresponds to the file. Use the latest version available for download. Now we need to install the PostgreSQL ODBC drivers.ĭownload the psqlODBC source tarball from here. If you are using Debian, Ubuntu or another Debian based distro, type this command in your terminal: $> sudo apt-get install iodbc libiodbc2-dev libpq-dev libssl-devįor RPM based distros (RedHat, Fedora, etc.) type this command instead of the previous one: $> sudo yum install iodbc iodbc-dev libpqxx-devel openssl-devel ![]() This is another driver manager not supported by MySQL Workbench so you won’t be able to use those drivers unless you compile them against iODBC. This may give you some troubles because most Linux distributions provide ODBC drivers compiled against unixODBC. The Migration Wizard uses iODBC as a driver manager for all of its ODBC connections in Linux. Unzip the downloaded file and install the provided MSI package. (The most recent one is at the bottom of the page.) Go to its download page ( ) and pick the most recent file from the list. If you are running MySQL Workbench on Windows download the MSI package for psqlODBC. ![]() Important: Always install the 32 bit version of the driver, even on 圆4 systems, as MySQL Workbench is a 32 bits application. The driver needs to be installed in that machine, as explained in the MySQL Workbench documentation. The procedure is different for every platform so make sure to follow the instructions that correspond to the OS where you have MySQL Workbench installed. In this post I’ll cover how to set up and configure psqlODBC, the official ODBC driver for PostgreSQL. If you plan to use the MySQL Workbench Migration Wizard to migrate databases from PostgreSQL to MySQL you first need to configure an ODBC driver to connect to your PostgreSQL server. ![]()
0 Comments
Leave a Reply. |