9,446 reputation
11025
bio website
location Cincinnati, OH
age 43
visits member for 2 years, 1 month
seen 10 hours ago

If you question or otherwise fail to recognize the superiority of the relational model... you're doing it wrong.


Sep
5
reviewed Close MYSQL Query - Unexpected result in text messaging database
Sep
5
reviewed Close mysql server is not starting
Sep
5
reviewed Close CASE conditions in SELECT statement
Sep
5
reviewed Close Can I use PHP function strtotime() in SQL queries?
Sep
4
comment MySQL GRANT requiring additional permissions
No, that's what WITH GRANT OPTION does. Allowing a user to grant privileges is only one step removed from giving that user the privilege, so you wouldn't really gain any real security if what you were trying were possible. If it were, and that account were compromised, it could just be used to give privileges to a different account, and the data would still be exposed.
Sep
4
answered MySQL GRANT requiring additional permissions
Sep
4
comment MySQL replication - slave hangs during ALTER table or BULK update - v5.1.71
I'm not saying that... only that OP needs to understand the implications fully before attempting it... and needs to fully understand the apparent "hang" events before proceeding.
Sep
3
comment MySQL replication - slave hangs during ALTER table or BULK update - v5.1.71
This advice, while technically valid in some cases, seems premature or a little dangerous, here... we don't have any evidence that the slave is actually "hanging" and I would suggest that it's just taking a long time to complete an operation, and STOP SLAVE in the middle of such an operation will eventually work. Not logging operations, timed improperly with the parallel updates, could break replication.
Aug
22
comment MySQL replication working, but data is out of date
Replicate-*-DB options, and others like them that prevent replicating the entire server are extremely problematic unless you absolutely understand how they work and their implications, especially when the master's binlog_format is not set to ROW. Have you read and thoroughly understood this and this‌​?
Aug
21
comment How to make MySQL log to 2 separate remote servers?
Wow... I wondered why that was where it was configured, instead of [mysqld], and I never noticed until just how this is actually implemented inside mysqld_safe: cmd="$cmd 2>&1 | logger -t '$syslog_tag_mysqld' -p daemon.error" ... where $cmd is the command that starts the MySQL server daemon. It's a classic Unix mix of simple, clever, effective... and sketchy. :)
Aug
19
comment MySQL replication: Understanding content of binlog
This is a row-based event, and the "statement" is in the BINLOG blocks. You can use the --verbose --base64-output=decode-rows options to decode it into pseudo-sql to see the rows in a human-readable format. What's in the binlog after the COMMIT?
Aug
9
comment Is it Possible to Recover Data from a BLACKHOLE table?
Of course, if binlogging is enabled... the data is actually all there if the logs haven't been purged, and there is a possibility of recovering it by replaying them from just the right point on another system.
Aug
6
comment Why Percona MySQL is crashing again and again
It's probably worth your time to thoroughly test the server's RAM, and if that's good, check the disks for bad blocks.
Aug
6
answered Loop through all users in MySQL and add REQUIRE SSL flag
Aug
5
answered Understanding JOINs and why the syntax works the way it does
Jul
29
comment Replication of a remote MySQL database to local MySQL database
Replication seems unlikely to be a possibility in this case, depending on what exactly OP means by "shared hosting."
Jul
28
answered mysqldump --single-transaction, yet update queries are waiting for the backup
Jul
23
revised Auto-increment ids with multiple inserts in mysql/mariadb
how many "rows" (not columns) was (afaik) the intended meaning
Jul
23
comment MySQL Code Works in PHPMyAdmin but not in PHP Page
@Justin, welcome to DBA.SE... Stop, and research SQL injection vulnerabilities. You should never concatenate your variables into queries like this. There are massive potential security holes waiting for you. Even if the values come from a safe place now, that's not a good reason to build queries this way. xkcd.com/327
Jul
23
comment Can I use mysql/mariadb databases on different OS?
+1, I agree that dump and reload is always the safest approach, but was primarily curious whether there was a specific or definitive reference we could cite, since the docs are unfortunately vague: "Like MyISAM data files, InnoDB data and log files are binary-compatible on all platforms having the same floating-point number format. If the floating-point formats differ but you have not used FLOAT or DOUBLE data types in your tables, then the procedure is the same: simply copy the relevant files." I've done binary data migrations from Solaris to Linux, but both were 64-bit.