Akses PosgreSQL dengan Python

Install paket [email protected]:~$ conda activate(base) [email protected]:~$ conda install -c anaconda psycopg2 Buat script untuk akses ke PostgreSQLimport psycopg2 # Establishing the connection.conn = psycopg2.connect( database=”postgres”, user=’postgres’, password=’password’, host=’localhost’, port= ‘5432’) # Creating a cursor object using the cursor() method.cursor = conn.cursor() Executing…Read More »

Install MariaDB di MX Linux

$ sudo apt install mariadb-server-10.5 $ apt policy mariadb-server mariadb-server: Installed: (none) Candidate: 1:10.5.12-0+deb11u1 Version table: 1:10.5.12-0+deb11u1 500 500 http://deb.debian.org/debian bullseye/main amd64 Packages 500 http://deb.debian.org/debian bullseye/main i386 Packages $ sudo apt install mariadb-server mariadb-client $ apt policy mariadb-server mariadb-server: Installed: 1:10.5.12-0+deb11u1 Candidate:…Read More »