Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 786

All versions of MySQL (not Microsoft SQL Server). Please also add a version-specific tag like mysql-5.7 if that is relevant to the question.

3 votes
1 answer
470 views

MySQL MyISAM Table Locking and Delayed Inserts for Webserver Access Logs

We will install a webserver that writes access logs to a MySQL table. … Access logs of course will get really really big, so this will be a separate MySQL instance from the regular data and we will more librally delete the binlogs. …
700 Software's user avatar
1 vote
2 answers
2k views

MySQL: How does AES_ENCRYPT turn the password into a key?

I am trying to figure out how to create the best secure password for AES_ENCRYPT. Specifically, how long should the password be, and how it translates into the 128 bit key length that AES typically us …
700 Software's user avatar
1 vote
Accepted

MySQL: How does AES_ENCRYPT turn the password into a key?

It seems someone else has already found the answer on security.stackexchange.com Sorry but I found that later from RubyForum "The algorithm just creates a 16 byte buffer set to all zero, then …
700 Software's user avatar
2 votes
1 answer
119 views

Linking identifiers across tables in MySQL (Foreign Keys)

Given a simplified example of two tables table Contact(ID int primary key, Name text not null) table ContactPhone(ContactID int not null, PhoneNumber text not null) Is there a way to tell MySQL that …
700 Software's user avatar
4 votes
1 answer
2k views

How are binlogs updated for MySQL temporary tables?

If I use CREATE TEMPORARY TABLE, can I write and update this MySQL table and know that none of it will be stored to the binlogs? …
700 Software's user avatar
8 votes
1 answer
8k views

Are InnoDB Deadlocks exclusive to INSERT/UPDATE/DELETE?

I am Working around MySQL error "Deadlock found when trying to get lock; try restarting transaction". I am going to have to update a program to allow deadlocks. …
700 Software's user avatar
15 votes
2 answers
20k views

Is there such thing as Custom Data Types?

Does MySQL have any support for custom data types? … I mostly use MySQL, but I am curious if this has ever been implemented, short of making the application call a function like the INET_ATON function. …
700 Software's user avatar
3 votes
1 answer
2k views

MySQL InnoDB data file directly on a disk slice (fixed-size)?

/mysql/data/ibdata1 to /dev/rdsk/c0t0d0s3. … MySQL would then see it as a file, but might perform better because it does not have to go through the file-system layer, it would write directly to a designated section of the disk. …
700 Software's user avatar
3 votes
1 answer
2k views

Rare error lasts only a second "Can't connect to local MySQL server through socket '/tmp/mys...

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (146) at something.pl line ... …
700 Software's user avatar
1 vote
2 answers
1k views

Are there any MySQL Triggers or Events that my program can wait for?

Emails are inserted into MySQL tables. Let's say I want my program to know immediately when the table is updated so it can check for new emails, would MySQL triggers be a good way to do this? … Do I have to implement my own event waiting service for this, or can it be done in MySQL? …
700 Software's user avatar
1 vote
Accepted

How to get readonly access to mysql files via g+w permission 750 or 640?

Well, I found online that the environment variable UMASK and UMASK_DIR must be set, regardless of what the command umask will output. One must add export UMASK=0640 and export UMASK=0750 to the top o …
700 Software's user avatar
1 vote
2 answers
675 views

How to get readonly access to mysql files via g+w permission 750 or 640?

The data-dir itself has permissions 700 thereby limiting access to the mysql user. … I want other folks who I add to the mysql group to be able to read binlogs and download the *.frm, *.MYI, *.MYD files to their local computer. My first thought is to run chmod g+rx data-dir. …
700 Software's user avatar
5 votes
3 answers
1k views

Is Oracle DB immune to the InnoDB deadlocks found in MySQL?

It seems odd to me that MySQL would not handle this internally: "Deadlock found when trying to get lock; try restarting transaction" Does Oracle DB work around this issue? …
700 Software's user avatar