eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

192
active users

#mysql

2 posts2 participants0 posts today

Do you want MySQL with the best possible performance? Then stick to version 5.6, as long as you don't mind it's been EOL for 12 years. 5.7 also has better performance than newer versions, although not as good as 5.6. Some performance regressions are just not being fixed.

smalldatum.blogspot.com/2025/0

^^ Veteran database performance guru, Mark Callaghan, former tech lead for MySQL at Facebook and Google, is now an independent consultant who blogs about database benchmarking.

(For my own account as a MariaDB fanboy I must add that another option could be migrating to MariaDB which is a plug-in replacement for MySQL 5.6, as MariaDB has done a better job at avoiding and fixing performance regressions.)

smalldatum.blogspot.comSysbench for MySQL 5.6 thru 9.4 on a small serverThis has performance results for InnoDB from MySQL 5.6.51, 5.7.44, 8.0.43, 8.4.6 and 9.4.0 on a small server with sysbench microbenchmarks. ...

Feel like your collection website could be better but don't know the necessary tools? A few seats left in UMaine's online course in Digital Collections and Exhibitions starting 3 Sep, which teaches  the fundamentals of getting your records in a database and putting them online DigitalCuration.UMaine.edu

#Archives #Collections #Data #DigitalCuration #Digitization #Museums #OnlineLearning
#Archives #Collections #DigitalCuration #Digitization #GLAM #Museums #OnlineLearning #PHP #MySQL #Database

Replied in thread

@MartinEscardo This is true. I'm suggesting that this is not just a computer engineering thing. I'm saying that at base, nature itself is non-binary, and we are non-binary, and we abstract things we don't understand into black and white distinctions to make them easier to understand. It's fast and efficient to ignore certain problems. There are still problems with binary logic.

Did you know that SQL is one of the few computer languages to use 3-valued logic? Databases are highly exposed to the problems of inconsistent or missing information. But we can use binary logic to simulate 3-valued logic (MySQL uses the paraconsistent logic LP by Graham Priest, but you can use that to create a fully relevant implication as in RM3, it's just a longer expression)

Continued thread

2/2 ...

The top of the exported file has these lines:

CREATE DATABASE IF NOT EXISTS `databaseName` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `databaseName`;

If I change "databaseName" to a different name, is that enough for it to restore everything from the export file to a new database of a different name?

#AskFedi how do you implement #database migrations (both schema or data changes) in your app? Say, the new version needs a new table or a new register in an existing table?

Can the end-user access that data or is it encrypted?

Boosts appreciated.
#MySQL #MariaDB #Postgres #PostgreSQL #SQLite #C #Cpp

Has your OS ever refused to install the MariaDB client package or the MySQL client package due to a conflict with the other?

It feels like it should be possible to have both, but unfortunately I have yet to see a solution for this.

For a subset of these cases, all that you want is just to have the client tools such as the mariadb/ mysql CLI and the mariadb-dumper/ mysqldumper backup programs co-existing on the same OS. (I.e. you don't care about the static/dynamic libmariadbclient/libmysqlclient libs etc).

So, I decided to write up my solutions for this:
dbdemon.com/installing_mariadb

dbdemon · Installing both MariaDB and MySQL clients on the same Unix hostHow to make MySQL's mysql, mysqldump co-exist with MariaDB's mariadb, mariadb-dump in a Unix-like OS
#mariadb#mysql#pkg

Got Cobra working in Go for my db2xlsx project which exports a MySQL / MariaDB database structure to an Excel file.

Benefits:

Simplifies the parsing
Allows for sub commands
Supports mandatory arguments

Three issues closed as a result, and I'll be able to tackle two of the others based on the groundwork laid.

github.com/godev-uk/db2xlsx

GitHubGitHub - godev-uk/db2xlsx: Database structure export to XLSXDatabase structure export to XLSX. Contribute to godev-uk/db2xlsx development by creating an account on GitHub.

Today's fun challenge:

Can't export a MySQL database using MariaDB mysqldump because the tools have now diverged too far

Can't install the MySQL mysqldump because it conflicts with the MariaDB one

Can't use the Docker MySQL image because it doesn't allow interaction (to provide the password)

Can't use the Docker MySQL image with an environment variable because that's ignored when redirecting output to a file

I've used #MySQL before (last time was 2016, I think), but today I'm mostly onto #Postgres (and sometimes, #SQLite). I know PG is superior to MySQL is pretty much all aspect I could think of, but still, it seems that MySQL still has a quite big user base.

What's the catch? What am I missing here? Why would someone use MySQL over Postgres to build smt since Postgres [apparently] is better than MySQL in every single possible aspect?

It's a honest question. Please help me understand it – and perhaps, consider modern MySQL/MariaDB in next projects. :)

TIL: The MySQL Docker image restarts the server after the initial data import, which means if you have enabled the query log using an SQL query it gets reset to being disabled.

If you enable the query log in the config file, this logs every query of the import.

So you have to:

1. Enable in config.
2. Disable using query before import.
3. When the server is restarted, the query log will be enabled.

Better experience and fast, secure way to create a connection with MariaDB.

// Config.php

$mariadb = ini_get('pdo_mysql.default_socket');

$pdo = new PDO("mysql:unix_socket=$mariadb;dbname=test", 'root', '');

if($pdo){
echo "Database connection success!";
}

#php#mariadb#pdo

Aktuell laufen in der Oracle University zwei Event an denen man kostenlos sein Wissen rund um Cloud, Datenbanken, DevOps aufbessern kann. Außerdem kann man kostenlose Voucher für Zertifizierungen erhalten.

Zum einen veranstaltet #Oracle erneut das Race To Certification-Event (bis Ende Oktober) und zum anderen findet im Rahmen des 30. Jubiläums von #MySQL ein ähnliches Event mit Kursen und Zertifikaten statt (bis Ende Juli)

education.oracle.com/race-to-c

education.oracle.com/mysql-pro