Quantcast
Channel: mysql – The Accidental Developer
Browsing latest articles
Browse All 5 View Live

Image may be NSFW.
Clik here to view.

Weird little MySQL error.

So I just moved some code onto a new server, and I’m suddenly getting the warning: mysql_query(): 14 is not a valid MySQL-Link resource in <bla bla bal> on line 47 A few other people seem to have...

View Article



Image may be NSFW.
Clik here to view.

Selecting the newest row in one-to-many on mySQL

This one was quite a sticky wicket. So what if you have two tables in mySQL, with a one-to-many relationship (say a forum and comments in that forum), and each of the comments is dated. Now let’s say...

View Article

MySQL date_add and date_sub functions running against millions of rows

One of my servers runs a query once a week to remove all rows from a Syslog table (>20,000,000 rows) in a MySQL database that are older than 60 days. This was running terribly slowly and interfering...

View Article

Running Joomla on Docker

I was looking for a well-known CMS (Content Management System) that I could easily run in a Docker container as a target for information security reconnaissance tools, such as WhatWeb. I found an...

View Article

Migrating database servers

As I’m migrating websites and applications from one server to another, I’m also migrating databases from one server to another. Even though I’ve done this dozens, if not hundreds, of times, I always...

View Article

Browsing latest articles
Browse All 5 View Live


Latest Images