Skip to content
Advertisement

Tag: mariadb

Error connecting to MariaDB from Linux Environment: ImportError: libmariadb.so.3: cannot open shared object file: No such file or directory

I am trying to connect to MariaDB using a python connector from a linux machine and while doing so I am getting the following error; Steps taken to Install mariadb from PYPI: pip install sqlalchemy pip install mariadb Note: additionally to pip install mariadb from PYPI, in a linux systems, the pip script additionally searched for mariadb_config which has to

Ownership of datadir is reset to mysql:mysql after every reboot

I’m using MariaDB 10.5.9-1 on Manjaro 5.10.23-1. I initialized mariadb database directory using this command: After data directory initialization, permissions and ownership of /var/lib/mysql: And there’s one another directory /run/mysqld, which file mysqld.sock resides in by default when server is up and running, has permissions and ownership: I have no idea when /run/mysqld was created, maybe the first time server

Linux CentOS 8 – Pip3 install Mariadb

Currently i’m working on a school project where I have to use MariaDB in a Python3 assignment. I have to build a Python script that connects to a database and put information into it. So said and done, I have created a Python script: But now my real issue is starting. I’m working with a Linux CentOS 8 system, where

Change datetime format in mariadb

Database : Mariadb Platform : CentOS Need to do Import data from a text file to table. Problem with DATETIME format. After importing the values are showing NULL. Answer Assuming your example of ‘mmddYYYYHHiissmmm’ is correct, change ‘%m-%d-%Y %H:%i:%s:%f’ to ‘%m%d%Y%H%i%s%f’. Here’s a test: You cannot change the internal representation of DATETIME or TIMESTAMP.

MySQL/MariaDB – Reset password without DB restart

unfortunately I forgot to note down the new password from the last recovery. This means I can’t login as root and the init script can’t restart it due to not having been updated (sys_maint). Is there a way for me to fix this, most of the guides I found require you to restart the mysql server, well, doesn’t work in

Advertisement