Top "Mysql" questions

MySQL is a free, open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL).

INTERSECT in MySQL

I have two tables, records and data. records has multiple fields (firstname, lastname, etc.). Each of these fields is a …

mysql sql intersect
Measuring actual MySQL query time

How can I measure the execution time of a query without measuring the time it spends waiting for a lock …

mysql optimization
Using backticks around field names

After reading a couple of answers and comments on some SQL questions here, and also hearing that a friend of …

mysql backticks
What does "Table does not support optimize, doing recreate + analyze instead" mean?

I am working on MySQL 5.5 and trying to do index rebuild using an OPTIMIZE TABLE query. I am getting the …

mysql
When to use SELECT ... FOR UPDATE?

Please help me understand the use-case behind SELECT ... FOR UPDATE. Question 1: Is the following a good example of when SELECT ... …

mysql sql sql-server transactions select-for-update
OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")

when connecting to mysql database in Django ,I get the error. I'm sure mysql server is running. /var/run/mysqld/…

python mysql django mysql.sock
Save Data in Arabic in MySQL database

I have changed the charset of the tables and of the column, i get the arabic text as ???? marks in …

mysql arabic character-encoding
MySQL - How to search for exact word match using LIKE?

I'm using this query to select data: mysql_query("SELECT * FROM products WHERE product_name LIKE '%".$search."%'"); The …

mysql select sql-like
MySQL command line won't open?

I just installed the latest version of MySQL. Until Now I had it on Windows XP but I wanted to …

mysql mysql-error-1045
ERROR 1452: Cannot add or update a child row: a foreign key constraint fails

I have created two tables in MySQL 5.6.11 as shown below by means of MySQL Workbench 5.2.47. The country table: delimiter $$ CREATE …

mysql mysql-workbench mysql-error-1452