Không có sản phẩm nào trong giỏ hàng của bạn
[PharmApp] - Install PostgreSQL & RDKit Cartridge & ChEMBL 30
24/06/2022
Admin
[tintuc]
Originally, I used mysql for business, but I downloaded the database when I heard that a research institute called chembl ( https://www.ebi.ac.uk/chembl/ ) is releasing the chemical DB for free. When I downloaded it, postgresql is also supported, so I set it up to try it out. Postgresql is also used in mastodon and I was interested in it, so I installed it once.
$ sudo apt install postgresqlSince I am using UBUNTU, I installed it with the apt command. After the installation is complete, log in and add the user password.
$ sudo -u postgres psqlpostgres=# ALTER USER postgres WITH PASSWORD 'PharmApp';You can set the password inside quotation marks. And when I tried to import the database set, it says that peer setting is not supported. So you have to change it to md5.
$ sudo nvim /etc/postgresql/12/main/pg_hba.confI mainly use neo-vim, so I opened it with nvim and opened it with a comfortable editor, and then went to the bottom line and there are the following items.
local all postgres peerChange the peer of the above item to md5, save it, and restart postgresql.
$ sudo systemctl restart postgresqlCan I not restart? Once you have done so, log back in and create the database according to the database installation documentation.
$ psql -U postgrespostgres=# CREATE DATABASE chembl_30;Now that you have created it, log out of postgres again, go to the directory where the dmp file is located, and load the dmp file with the command.
$ sudo pg_restore --no-owner -h localhost -p 5432 -u postgres -d chembl_30 chembl_30_postgresql.dmpAfter entering the command, entering the password, and waiting, when the loading is complete, you can log in and check.
He added that it would be better to receive feedback on md5 and add it.
https://www.postgresql.org/docs/13/auth-peer.html
Previously, the peer seems to bring the locally mapped user, so I changed it to the md5 method.
https://en.wikipedia.org/wiki/MD5
It is said that the md5 method has encryption flaws...
https://www.postgresql.org/docs/11/auth-password.html
So, in the official postgresql document, the scram-sha-256 method is recommended, and it seems to be supported from 11. So, it is recommended to change to scram-sha-256 in /etc/postgresql/12/main/pg_hba.conf file.
Sản phẩm và Dịch vụ của Nhóm Nghiên Cứu Thuốc:
Xem thêm danh mục tại đây: Danh mục chuyển giao công nghệ, Danh mục công thức Chi tiết vui lòng liên hệ Hotline CSKH: 0888.999.311 | info@nghiencuuthuoc.com | nghiencuuthuoc@gmail.com
|
[/tintuc]

