How To Create a User and Grant Permissions in MySQL
How to create a user How to delete a user How to grant permissions How to apply those permissions Going a bit deeper Different types… Read More »How To Create a User and Grant Permissions in MySQL
How to create a user How to delete a user How to grant permissions How to apply those permissions Going a bit deeper Different types… Read More »How To Create a User and Grant Permissions in MySQL
From time to time you might have some rather big tables that you want to delete all the data quickly and start afresh. You have… Read More »Faster alternative to MySQL Delete Table Contents / Truncate
At Statvoo we found ourselves in the position where we needed to move our master MySQL database without ANY downtime and for anyone who’s tried… Read More »Moving a MySQL Database without downtime
MySQL’s ORDER BY RAND() function can be so useful for returning random items from a table, in fact, we have used it a million times… Read More »ORDER BY RAND() – Faster Alternative
If you are suddenly not able to perform GROUP BY statements as you used to after a MySQL/MariaDB version update, then you will have noticed… Read More »How to Bring Back GROUP BY in MySQL
If you see lots of disk space quickly disappearing on your MySQL or MariaDB server, then you may want to look into the BinLog directory,… Read More »How to Purge the BinLog for MySQL and MariaDB
So you have a table where you want to delete a bunch of rows, based on a particular column being matched in another table. This… Read More »How to Delete from a Table where rows match in Another Table – MySQL
There are many occasions where you need to INSERT a record into a MySQL database table, but the record already exists. INSERT INTO queue_domains (domain)… Read More »REPLACE INTO instead of INSERT INTO – MySQL
So if you’ve ever created users and given them specific permissions from with SQL or the commandline, you will be familiar with a statement called… Read More »When to use FLUSH PRIVILEGES in MySQL
I was trying to install MySQL Community Server for Windows 10 using the standard .MSI installer provded from the MySQL website and the installer just… Read More »MySQL Community Server MSI Installer Hangs on Windows 10
I often need a quick and easy few lines to retrieve some data from MySQL using Joomla without all the MVC nonsense that usually goes… Read More »Let Joomla and MySQL interact!
In order to backup all mysql databases, you can run the following command in your linux command line: The example below is configured with username… Read More »How to backup all mysql databases
If you get the following error while trying to connect to a MySQL database using a third party client such as TOAD or SQL Workbench,… Read More »Unable to connect to any of the specified MySQL hosts.
In MySQL 5.1 LEN is called LENGTH, you use it exactly the same and pass in the link, so: LENGTH(link).
This error is thrown by MySQL because it tries to do a DNS lookup on the address connecting to the server and it fails due… Read More »MySQL Error: Can't get hostname for your address
So you’ve just installed Opencart 1.5.0 and when attempting to edit a product or category or etc you get the following error: Error: You have… Read More »..near 'option o ON (po.option_id = o.option_id) LEFT JOIN option_description od ON (o.o' at line 1
I mainly use MySQL these days, so get screwed over for a few minutes when I have to do something in MSSQL that is slightly… Read More »MSSQL Select Not Null
MySQL Main Query Types SELECT SELECT * FROM tablename INSERT UPDATE DELETE Note You will use a lot of WHERE clauses as well along with… Read More »MySQL Main Query Types used in PHP to select, insert, update and delete data
If you need to connect to a mysql database from php you can do it like this: This allows you to make a connection to… Read More »Connect to mysql database from php
Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource You have just gotten a warning when trying to check if an inserted row was… Read More »Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource