Chào mừng bạn đến với Website NGHIÊN CỨU BÀO CHẾ THUỐC
Rất nhiều ưu đãi và chương trình khuyến mãi đang chờ đợi bạn
Ưu đãi lớn dành cho thành viên mới
  • 5
  • Giỏ hàng

    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.


PharmApp_RDKit_ChemBl_30


$ sudo apt install postgresql

Since 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 psql
postgres=# 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.conf

I 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            peer

Change the peer of the above item to md5, save it, and restart postgresql.

$ sudo systemctl restart postgresql

Can I not restart? Once you have done so, log back in and create the database according to the database installation documentation.

PostgreSQL & RDKit Cartridge & ChEMBL 30



$ psql -U postgres
postgres=# 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.dmp

After 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:

  • Nghiên cứu khoa học và phát triển công nghệ trí tuệ nhân tạo, phần mềm ngành dược
  • Nghiên cứu khoa học và phát triển công nghệ bào chế thuốc, thuốc thú y, thuốc thủy sản, thực phẩm chức năng, mỹ phẩm,...
  • Chuyển giao công nghệ và qui trình sản xuất thuốc, thuốc thú y, thuốc thủy sản, thực phẩm chức năng, mỹ phẩm,...
  • Chuyển giao công nghệ và qui trình chiết xuất dược liệu, hợp chất thiên nhiên,.. theo chuẩn GMP
  • Đào tạo các chuyên ngành bào chế, sản xuất, QA, QC
  • Bán các công thức đã bào chế hiệu quả, an toàn, giá sản phẩm hợp lý và triển khai sản xuất ổn định
  • Tư vấn xây dựng TCCS và PPKN tương thích các hệ thống quản lý chất lương GxP


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


Nhóm Nghiên Cứu Thuốc - Đồng hành cùng Doanh nghiệp








[/tintuc]