Quantcast
Channel: MySQL – GIDBlog
Browsing latest articles
Browse All 9 View Live

Random Rows in MySQL

I have to admit that I had quite some trouble figuring out how I could get MySQL to return some random rows in a query. It was something I had to figure out for myself when I wanted to get a list of...

View Article


Create a MySQL Table with PHP

One thing I often asked myself, when I first started programming in PHP, was How do I create a MySQL database table with PHP? Of course, I have come a long way since then, and creating a MySQL table...

View Article


Inserting Data in Multiple Tables

How to insert records of data into more than 1 database table in MySQL at a time? When I first started coding PHP scripts for myself, without researching further, I simply assumed that I had to INSERT...

View Article

Backup MySQL databases

There are so many ways to back up your MySQL databases (and tables) and all of them work just as well… until the database (DB) tables get really big. You can ‘dump’ PhpMyAdmin The popular PhpMyAdmin...

View Article

Formatting Dates in MySQL

When you want to format dates stored in a MySQL database to output onto your web pages, you have a choice; either do it with PHP or do it directly in the MySQL query itself. I usually do it in the...

View Article


Multiple SQL Inserts in 1 Query

If your MySQL version is 3.22.5 or later, you can now INSERT multiple values / records in one single query. In most cases this is probably not useful but I recently found this out while trying to...

View Article

Is MySQL Up?

These days I’m trying to develop a script to help me quickly copy my MySQL database from my (live) remote site straight into my , where I do all my development work. Right at the top of the script I...

View Article

exec: “mysql”: executable file not found in $PATH

My database backup/restore scripts started failing when I upgraded the mariadb server of my site from 10.5 to 11.4. The problem: there is no mysql client installed!

View Article


Upgrading MySQL/MariaDB Docker Container

Upgrading MySQL or MariaDB database servers that contain existing databases and tables requires executing a specific command.

View Article

Browsing latest articles
Browse All 9 View Live