(more…)Rule #1: “Do not fix, if it’s not broken”
I’ve had version phpMyAdmin 5.0.2 since 2020 without any problem (PHP 7.+, 8.0) until I decided to look at PHP 8.1. Number of “Deprecated” messages from twig/twig package just killed the system, and Composer failed to update outdated packages.
Rule #2 extends #1: If you do not have a VERY GOOD REASON to use PHP 8.1, stay with the current version
Category: Databases
MariaDB/MySql, MongoDB installation, configuration and access from PHP, Python, and Node.js.
Install pgAdmin 4 on Debian Buster
Make sure you have the latest version of pip
python3 -m pip install --upgrade pip
Create the virtual environment
python3 -m venv pgadmin4(more…)
Install PostgreSQL on Ruspberry Pi Debian Buster
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt update
Install the latest available version of PostreSQL (any other required using postgresql-VERSION)
sudo apt install postgresql(more…)
Install MongoDB on Raspberry Pi
[64-bit Raspberry OS Buster]
We are going to use instructions for Ubuntu 64-bit:
ADDED OPTION -L to support re-direct… (May, 7, 2022)
curl -s -L https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - echo "deb [ arch=arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list sudo apt update
Now we can install MongoDB server:
sudo apt install mongodb-org # enable and start sudo systemctl enable mongod sudo systemctl start mongod
MongoDB and PHP on Raspberry OS (32-bit & 64-bit)
sudo apt install php-dev sudo pecl install mongodb
Test MongoDB 64bit with Node.js
Make sure you have node.js installed. I’ve combine all code from w3schools.com into single file.
mkdir test-mongodb cd test-mongo-db npm init
Source: Node.js MongoDB Get Started
MongoDB + Python
Depends on the version you are using:
python -m pip install pymongo python3 -m pip install pymongo
In my case, because I’ve change the default version of Python,
python -m pip install pymongo
will be installed for python3