I'm trying to get the MySQL ODBC connector working, I downloaded the latest source, copied the contents of /lib to /usr/lib64/odbc which was the following files:
/usr/lib64/odbc/libmyodbc8w.so
/usr/lib64/odbc/libmyodbc8a.so
But when I try and connect like this:
isql -v asterisk-connector
I get this error, even though the file is definetely there
[01000][unixODBC][Driver Manager]Can't open lib '/usr/lib64/odbc/libmyodbc8w.so' : file not found
Related
I am unable to import a CSV with postgres(v12) into pgAdmin4 using the copy command.
COPY revenue
FROM "../Desktop/Home/revenue.csv"
DELIMITER ','
CSV HEADER;
The result I get is:
ERROR: could not open file "../Desktop/Home/revenue.csv" for reading: Permission denied
HINT: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.
SQL state: 42501
I found article
How to import a CSV file into PostgreSQL using Mac
but it was unsolved and I already tried ging the user 'postgres' 'read and write' permissions. Maybe I did it wrong, I right clicked on the CSV file and I also tried giving it permission in pgAdmin4 (properties, default privileges)
I found the solution below suggesting I launch postgres from my command line
Postgres ERROR: could not open file for reading: Permission denied
However everything I read on launching postgres on a mac via command line includes homebrew. I didn't install postgresql with homebrew.
-Can I launch postgres on a mac without using homebrew?
If I install homebrew, will it work to launch postgresql even if I didn't use it to install postgres initially?
-Is there another way to use the copy command via pgadmin ? (I tried using dbeaver but it wouldn't connect to my database)
I am super lost.
Thank you!
I have my database running on a docker container and I want to upload data stored in GZipped Archive file (.agz) to Studio 3T using Mongodump import. However, when I click execute it returns an error: "Import mongodump archive error connecting to db server: no reachable servers".
I have tried unzipping file, re-establishing local connection to docker container, dropping collection before importing, and all the other types of imports.
After trying the "Another Collection" import, importing the file appears to be successful with a green checkmark but logs 0 files uploaded. Every other import gives the
Import mongodump archive error connecting to db server: no reachable servers
Does anyone have any experience with this?
Ok, so I have a client who has a postgresql database. He sent me the files (they look like this: http://prntscr.com/fbyz2l).
I have PGAdmin 4 on my windows 10 box. I also have postgres installed locally.
I have the database name and login information... but I can't figure out how to connect to the database.
I am guessing it is pretty simple, but I am having a tough time googling the right thing to get some help.
Update
I am still hunting this, but my feeling is the files are not the right format to import or bring onto my localhost. I am asking for a backup file that PGAdmin can make. If anyone has input on this, I am all ears.
Update 2
So I copied all the files to C:\Program Files\PostgreSQL\data\pg96\base
Restarted the server. When I do a
psql -h "C:\Program Files\PostgreSQL\data\pg96\base" -l
I get this:
http://prntscr.com/fbzxf2
I can connect to template1 and postgres, but neither of them is my database (184429). Ugh...
Thanks!
These files are basically copy of the postgres DB . You need to restore it on your machine .
You can find default path of postgres DB on C:\Program Files\PostgreSQL\some version\data location . Place the root of these files within that directory and restart your postgres service .
After that you can find new database in your PGAdmin .
i am running postgresql on a centos VM and had no troubles with the installation of everything including postgis. from the terminal i do the following:
# su - postgres
# psql database_name
# CREATE EXTENSION post_gis;
at this point i receive this error:
ERROR: could not load library "/usr/pgsql-9.3/lib/rtpostgis-2.1.so": libhdf5.so.6: cannot open shared object file: No such file or directory
however, if you navigate to that folder the file is there. i also know that i have libhdf5 as well. so not sure what i missed. any ideas? i have searched here and other places but nothing seems to pinpoint my issue.
How to install openbravo with database backup?
I have a postgresql dump file and I want to install openbravo with this sql file.
Steps To dump database locally
1)Open pgadmin GUI, create new database say 'db_name'
2)Go to command prompt, issue following*(sql_File_Path may vary)*
C:\Program Files (x86)\PostgreSQL\9.0\bin>psql -U postgres -f sql_File_Path db_name
3)Edit the Openbravo.properties file *bbdd.sid=db_name*
4)ant smartbuild -Dlocal=no
5)Restart the tomcat.
Note:
You should have a compiled source code of Openbravo , Otherwise you will get an error during Smartbuild.