MySQL / MariaDB Superuser
Simple syntax to create a super user (for editing users and dropping schemas etc) CREATE USER 'superuser'@'%' IDENTIFIED BY '[password]';…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
Simple syntax to create a super user (for editing users and dropping schemas etc) CREATE USER 'superuser'@'%' IDENTIFIED BY '[password]';…
You have some data which many users edit often, and you want to return a field with some sort of…
So, quick and simple MySQL backup in a CRON. #!/bin/bash _hour=`date '+%H'`; _user="root"; _pass="thepassword"; _dest="/srv/backups/daily/"; mysqldump -u $_user -p$_pass --all-databases…
In most MySQL GUI’s that offer the ability to alter the table definitions of a schema, if you add a…
This is a “script” to convert your latin1 myisam database to utf8 innodb Dump the database mysqldump -u root -p database_to_convert > db.latin1.sql…
MySQL allows you to profile queries, enabling you to see whats being run on your server. They are stored in…
So, once you’re all set up and running, you may want to give users access from the outside world. This…
I recently needed to update a whole bunch of records using an IN() on the target table: UPDATE table1 SET…
If you have a database of CDs, and artists, etc. Say you want to get a list of artists with…
Don’t leave the root user as ‘the’ user for your web application. That’s just not a good idea. For instance,…