Installing unixODBC and FreeTDS on macOS 10.12 - macos-sierra

I have a 32 bit application that needs to connect to a Sybase ASE database. I know in order to make the database connection I need unixODBC and FreeTDS. I installed them using the following commands:
brew install unixodbc
brew install freetds --with-unixodbc
This allowed me to connect to the database and run some query, but it is the 64 bit version on unixODBC and my app cannot connect to it.
How can I force the 32 bit installation of unixODBC and FreeTDS on macOS 10.12?
Thank you

Related

delete postgresql server from mac

I installed postgresql server on mac with brew install postgres because I want to practice it but it seems I installed the wrong thing? What I need is to run the installer from the official website ?
I cannot find how to uninstall the postgresql server
What you have installed was correct. But if you want to install .dmg package of postgres then you can do that as well.
First, uninstall the current version of Postgres by using
brew uninstall postgres
and then Navigate to the following below URL to get your desire Postgres .dmg package
offical Postgres .dmg for mac
Disclosure: I work for EnterpriseDB (EDB), we create and certify the Mac installers for all supported PostgreSQL versions.

Installing MySQL Client 5.6 on Ubuntu 18.04

I have a legacy project that I'm trying to modernize, and part of that involves setting up a more efficient system of automated backups using mysqldump.
The app's database is using MySQL 5.6, and is hosted via an RDS instance. To get mysqldump up and running, I believe I need to install a version of mysql-client that corresponds to 5.6.
However, running apt-get install mysql-client installs 8.0 by default. However, I can't find any version-specific versions of mysql-client available. Running sudo apt-get install mysql-client-5.7 returns a notice that there's no installation candidate available.
Is it still possible to install older versions of mysql-client? If not, is there another way to get ahold of the mysqldump functionality?
Edit: As #exussum noted below, 8.0 is backwards compatible with 5.6 and 5.7. I was hitting errors when running mysqldump, which I'd assumed indicated incompatibility, but were actually related to my app specifically.
They are backwards compatible, so you can use mysql-client 8 to dump mysql-server 5.5
to get a specific version docker is great
(sudo apt install docker) to install
docker run mysql:5.6 mysqldump
will run mysqldump though docker, and you can choose your version there easily enough

How can I learn ubunu postgresql version as default?

When I install the ubuntu server, the postgresql repository package names are installed on server automatically. So when I type command sudo apt-get install postgresql it will start installation. But which version will be installed? I don't know it.
So how can I learn which version will be installed?

What Postgres packages are really needed?

I have new Vultr Ubuntu 18.04 server on which I plan to install a Rails 5.2 app on Postgres and RVM.
Which Postgres packages are needed for a Rails app? I will use PG Admin to view the database as well.
This tutorial says to install postgresql-common + postgresql-9.5 + libpq-dev
This one says postgresql + postgresql-contrib + libpq-dev
This one says postgresql + postgresql-contrib
Which is the right one? Isn't postgresql-10 better than postgresql-9.5?
you only need postgresql-common and postgresql on the server.
posstgresql-dev is needed if you are compiling clients
pg_admin is usually installed on your desktop, no the server.
version 10 is newer and considered stable by the developers, I'd pick it over 9.x

Installing pyodbc on redhat

I am trying to install pyodbc on Redhat. I know that for pyodbc you need the unixODBC-devel. However if I have the sql server odbc driver installed on my server do I still need unixODBC?
Are you talking about this driver?
http://www.microsoft.com/en-us/download/details.aspx?id=36437
If you're using that, it is a drop in for unixODBC, however, the installation instructions seem to require you to have unixODBC, and then perform a "drop in" installation. Too bad there isn't something in yum.