to3k, to Blog
@to3k@tomaszdunia.pl avatar

For my , I also observed this problem. This is not very disturbing, but after publishing information about the new post, the site temporarily stops working and throws the error of exceeding the query limit, because the blog is based, of course, on .
via
https://news.itsfoss.com/mastodon-link-problem/

OldGrumpyBitWrangler, to php
@OldGrumpyBitWrangler@mastodon.social avatar

An instance of a popular CMS is used for a website. While analyzing I'm coming across a a table in it's MySQL database where a column called "deleted" is defined as such:

deleted` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'A boolean indicating whether this data item has been deleted‘

🤦‍♂️

There should be a license allowing allowed to write software used by someone else. Like with drivers licenses it needs a points system for violations and license revocation.

ruud, to random
@ruud@mastodon.world avatar

Troubleshooting a broken #MySQL #Galera cluster, I don't really like this setup and I'm about as stuck as the cluster is... argh..

pwaring, to random
@pwaring@fosstodon.org avatar

TIL: If you try to manually INSERT a row into a MySQL table and set an AUTO_INCREMENT column to 0, MySQL ignores the provided value and assumes you want the next increment amount.

Found this whilst migrating a legacy database to a new structure, where the legacy database had foreign keys (not actually defined as constraints) with 0 values.

You can control this with NO_AUTO_VALUE_ON_ZERO in sql_mode (it's on by default I think).

#MySQL #databases

MySQL 8.0: Prepare your old Drupal (community.ovh.com)

Post en français ici. TL;DR: Older versions of Drupal does not work with MySQL 8.0. Update now. Brace yourself, MySQL 8.0 is coming soon on the databases delivered with your web hostings, also called "SharedSQL" (more info soon). After my post on old Wordpress, this one is about old Drupal. Issue Whether you installed it...

qlp, to fedora
@qlp@linh.social avatar

Looks like MySQL has updated their YUM repositories to include Fedora 40!

codeenigma, to drupal
@codeenigma@toots.codeenigma.com avatar

Very relevant post from #OVH about which #Drupal versions support #MySQL 8.0, as quite a few sites are still stuck on MySQL 5.7:

https://community.ovh.com/t/MySQL-80-Prepare-your-old-Drupal/63531

griebie, to random
@griebie@muenster.im avatar

Hab gestern 2 Stunden damit verbracht, mein MAMP nach dem Absturz wieder zum laufen zu kriegen

https://www.griebie.de/absturz-bei-laufendem-mamp-mysql-neustart-schlaegt-fehl

isotopp, to random German
@isotopp@chaos.social avatar

MySQL folks take a lot of things for granted that are not present in this form in Postgres, and that may be a bad surprise when you try out "the other system".

MySQL for example has a stable and upwards- and slightly-downwards-compatible on-disk format, mostly. Oracle sometimes forgets how important that is and makes changes, or unannounced changes, and then needs to be corrected, hard, by their development partners and testers.

But in general the following things are true:

ovid,
@ovid@fosstodon.org avatar

@isotopp I definitely prefer PostgreSQL to #MySQL, but #PostgreSQL deciding that collation derives from your system's locale settings when PostgreSQL installed means identical setups on different boxes can behave differently. This is NOT FUN to debug.

I've heard that there was discussion to change this, but I don't know if it happened.

mackuba, to random
@mackuba@martianbase.net avatar

Very nice tool for converting an database into : https://github.com/techouse/sqlite3-to-mysql. I'm planning to experiment with switching from SQLite to MySQL or Postgres (and maybe DuckDB?) for the feeds database and see how it behaves and how the performance differs… 🤔

phphil, to random
@phphil@phpc.social avatar

Built a request super slow because I thought CTEs (Common Table Expressions) in #MySQL are "cached".

I had one CTE and then queried it 5 times to further refine and structure the result.

Turns out CTEs work more like views and this led to the query in the CTE being executed 5 times.

gjergjiramku, to PostgreSQL

What's your go to db for side projects?

From now on mine will be sqlite.

So many benefits compared to other database, where do I start from?

mcc, to random
@mcc@mastodon.social avatar

There's like an entire class of open source project where you can no longer get support for them because they're old enough that the support channels are IRC rather than Discord or something but nobody's on IRC anymore (or rather hundreds of people are on the libera.chat channel, but no one is talking or reading questions)

mcc,
@mcc@mastodon.social avatar

Anyway I upgraded Ubuntu and now mysql is in a boot loop where it starts up, prints "Starting upgrade of data directory", prints "table SPECIFIC_TABLE_THAT_SHOULD_BE_THERE not found in InnoDB dictionary", then prints "aborting" and the process begins again. Most of the repair tools for mysql seem to assume the mysqld is already running rather than in a boot loop. There are 210 people in the #mysql irc channel on Libera and no one but me is talking. I'm not actually sure where to begin here!

osjobhub, to opensource
@osjobhub@fosstodon.org avatar
linuxmagazine, to PostgreSQL
@linuxmagazine@fosstodon.org avatar

From the Linux Update newsletter: Open source database management systems offer flexibility and lower costs while avoiding vendor lock-in, but how do you choose the one that's right for your organization? https://www.linux-magazine.com/Issues/2024/282/Data-Management

codemonkeymike, to random
@codemonkeymike@fosstodon.org avatar

On a scale of 1 to Drupal, how janky is it to create a index on a text field like this?

Using a prefix index, as all I care about is the first 10 characters of the field for lookup purposes

mackuba, to postgres
@mackuba@martianbase.net avatar

Anyone here used both and a lot and could tell me how they compare for larger DBs? Mostly in terms of performance, assuming I don't need some advanced features - talking about 10s or 100s of GBs, a lot of writes but not that many reads. 🤔

bananabob, (edited ) to random
@bananabob@mastodon.nz avatar

This now solved thanks to those that helped.

I just love the non-questioning help provided here. Mastadonians are amazing!


I need some mysql help.

I have this piece of code:
$result = mysqli_query($db,"UPDATE FROM pages WHERE status = 'D' AND status_date <= '$delete_date'");

Is there something wrong with the code?

#MySQL

bertrand, to php
@bertrand@piaille.fr avatar

Hey Mastodon, what's a free hosting plan for a server-side Web app + DB you'd recommend? Should I pursue with good old and or is there something more modern? I have a small doodling idea for this three days week-end and maybe I should also learn a new language?

osjobhub, to linux
@osjobhub@fosstodon.org avatar
outofcontrol, to random
@outofcontrol@phpc.social avatar

After using TablePlus for around 3 years, is this still a good app to use? Are there newer better alternatives.

It’s renewal time and I’d like to check-in on other apps before upgrading.

Feedback welcome.

#tableplus #mysql #mariadb

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • rosin
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • Durango
  • khanakhh
  • kavyap
  • megavids
  • everett
  • vwfavf
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ngwrru68w68
  • anitta
  • provamag3
  • tester
  • modclub
  • JUstTest
  • All magazines