<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - General</title>
        <description>The main discussion forum for MySQL. Please use specialized forums for specific topics.</description>
        <link>https://forums.mysql.com/list.php?20</link>
        <lastBuildDate>Sun, 12 Apr 2026 12:16:38 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741468,741468#msg-741468</guid>
            <title>Gap lock failure (1 reply)</title>
            <link>https://forums.mysql.com/read.php?20,741468,741468#msg-741468</link>
            <description><![CDATA[ Hello. I learned that in MySQL, we might insert multiple rows with the same id into a primary key field because of its gap lock failure. Does anyone have any insight about the details regarding the gap lock failure?]]></description>
            <dc:creator>Eve Li</dc:creator>
            <category>General</category>
            <pubDate>Wed, 08 Apr 2026 14:36:36 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741429,741429#msg-741429</guid>
            <title>Gap lock failure (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,741429,741429#msg-741429</link>
            <description><![CDATA[ Hello. <br />
<br />
I learned that in MySQL, we could possibly insert multiple rows with the same id into a primary key field because of the gap lock failure.<br />
<br />
I was trying to look for documentation about this, but I couldn&#039;t find any. Does anyone have any insights about this issue?<br />
<br />
Thanks.]]></description>
            <dc:creator>Eve Li</dc:creator>
            <category>General</category>
            <pubDate>Wed, 26 Nov 2025 18:33:37 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741369,741369#msg-741369</guid>
            <title>Best practices for storing sensitive numeric data in MySQL (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,741369,741369#msg-741369</link>
            <description><![CDATA[ Hi everyone,<br />
<br />
I’m designing a MySQL database to store user information that includes sensitive numeric data. I have a few questions about best practices:<br />
<br />
What’s the recommended way to store partially sensitive numbers (like card or account identifiers) securely?<br />
<br />
Should I use encryption at the column level, or rely on application-level encryption?<br />
<br />
Are there any performance considerations when frequently querying encrypted numeric fields?<br />
<br />
Also, if anyone knows any reliable tutorials, tools, or resources for securely handling and querying sensitive numeric data in MySQL, I’d love to check them out.<br />
<br />
I’d really appreciate any guidance, examples, or resources for designing a secure and efficient schema.<br />
<br />
Thanks in advance!]]></description>
            <dc:creator>Rasheed Mosan</dc:creator>
            <category>General</category>
            <pubDate>Tue, 11 Nov 2025 07:21:28 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741356,741356#msg-741356</guid>
            <title>Statistics on a table : List fields with count not empty, min and max values (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,741356,741356#msg-741356</link>
            <description><![CDATA[ Hello<br />
<br />
I want to establish a query that can list all fields of a given table, with count of not empty values and min and max values<br />
<br />
Thanks in advance :)]]></description>
            <dc:creator>Camion Petit</dc:creator>
            <category>General</category>
            <pubDate>Thu, 06 Nov 2025 13:00:38 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741169,741169#msg-741169</guid>
            <title>Handling MySQL Performance Bottlenecks During Peak Traffic (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,741169,741169#msg-741169</link>
            <description><![CDATA[ Hi all,<br />
<br />
I’m currently optimizing a MySQL-based system that handles high read and write traffic. I’ve already applied some common improvements like<br />
<br />
Proper indexing<br />
<br />
Query optimization (avoiding SELECT *)<br />
<br />
Partitioning for large tables<br />
<br />
Still, when peak traffic hits, I notice a performance dip—mainly in queries involving joins across multiple large tables.<br />
<br />
I’d love to hear from this community:<br />
<br />
Do you rely more on denormalization, or do you prefer to stick to strict normalization even for large datasets?<br />
<br />
Have you found connection pooling to significantly reduce overhead in such cases?<br />
<br />
What’s your favorite monitoring tool to quickly identify slow queries in production?<br />
<br />
It&#039;s always beneficial to gain knowledge from practical experiences rather than relying solely on theoretical concepts.<br />
<br />
<br />
<br />
(P.S. I mostly work on web applications where database performance is critical, so discussions like these directly help me and my team at Kasper Infotech when we’re scaling client systems.)]]></description>
            <dc:creator>Kasper Infotech</dc:creator>
            <category>General</category>
            <pubDate>Sat, 06 Sep 2025 04:55:39 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741151,741151#msg-741151</guid>
            <title>MySQL 5.6 not writing any logs (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,741151,741151#msg-741151</link>
            <description><![CDATA[ We are using MySQL version 5.6 in our Windows Server 2012 R2 environment. We have enabled the error, general &amp; slow logging in the config file, but the logs are not being written even in case of errors. The below is a snippet from the ‘my.ini’ file:<br />
<br />
# Commented lines aren’t included<br />
[mysqld]<br />
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES <br />
log_error = &quot;C:\Program Files\MySQL\MySQL Server 5.6\Log\error.log&quot;<br />
slow_query_log = 1<br />
slow_query_log_file = &quot;C:\mysql_logs\mysql_slow.log&quot;<br />
long_query_time = 2<br />
<br />
<br />
The MySQL is not directly managed, rather it is managed by Plesk Obsidian version 18.0.56 Update #4 ( Web Abmin Edition), as it was installed as a component of Plesk. As a result, we are unable to change any permissions to folder, such as providing ‘Full’ permission for the MySQL account through the mysql command line. We have given Full permissions through the Windows NTFS folder permission but still not working.<br />
<br />
<br />
The troubleshooting steps tried by us are :<br />
<br />
1.Checked whether the intended log file is present in the path before mentioning it in the my.ini file.<br />
2.Restarted the mysql services after modifying the config fil.e<br />
3.Checked the permissions to the folder in which the intended log file path resides, after coming across this link. The logs are not writing even after giving full permission as mentioned above.<br />
4.Replaced the entry for the file path by removing the double quotes , replacing with single quotes, checking for any inadvertent spaces.<br />
5.We have also added SET global general_log = 1; but logs are still not being written.<br />
<br />
After every changes to the ‘my.ini’ we have restarted the MySQL service and checked.<br />
<br />
Please assist us in resolving the issue. If any further information required then do let me know.<br />
<br />
Thank you]]></description>
            <dc:creator>Debanjali Sarkar</dc:creator>
            <category>General</category>
            <pubDate>Tue, 02 Sep 2025 05:04:06 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741148,741148#msg-741148</guid>
            <title>MySQL 5.6 not writing any logs (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,741148,741148#msg-741148</link>
            <description><![CDATA[ We are using MySQL version 5.6 in our Windows Server 2012 R2 environment. We have enabled the error, general &amp; slow logging in the config file, but the logs are not being written even in case of errors. The below is a snippet from the ‘my.ini’ file:<br />
<br />
# Commented lines aren’t included<br />
[mysqld]<br />
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES <br />
log_error = &quot;C:\Program Files\MySQL\MySQL Server 5.6\Log\error.log&quot;<br />
slow_query_log = 1<br />
slow_query_log_file = &quot;C:\mysql_logs\mysql_slow.log&quot;<br />
long_query_time = 2<br />
<br />
<br />
<br />
The MySQL is not directly managed, rather it is managed by Plesk Obsidian version 18.0.56 Update #4 ( Web Abmin Edition), as it was installed as a component of Plesk. As a result, we are unable to change any permissions to folder, such as providing ‘Full’ permission for the MySQL account through the mysql command line. We have given Full permissions through the Windows NTFS folder permission but still not working.<br />
<br />
<br />
<br />
The troubleshooting steps tried by us are :<br />
<br />
1. Checked whether the intended log file is present in the path before mentioning it in the my.ini file.<br />
2. Restarted the mysql services after modifying the config fil.e<br />
3. Checked the permissions to the folder in which the intended log file path resides, after coming across this link. The logs are not writing even after giving full permission as mentioned above.<br />
4. Replaced the entry for the file path by removing the double quotes , replacing with single quotes, checking for any inadvertent spaces.<br />
5. We have also added SET global general_log = 1; but logs are still not being written.<br />
After every changes to the ‘my.ini’ we have restarted the MySQL service and checked.<br />
<br />
Please assist us in resolving the issue. If any further information required then do let me know.<br />
<br />
Thank you.]]></description>
            <dc:creator>Debanjali Sarkar</dc:creator>
            <category>General</category>
            <pubDate>Mon, 01 Sep 2025 05:07:23 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741129,741129#msg-741129</guid>
            <title>When I use JOIN to connect 4 tables, the query becomes extremely slow. (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,741129,741129#msg-741129</link>
            <description><![CDATA[ When I use JOIN to connect 4 big tables, the query is extremely slow. How can I speed up multi-table JOIN queries? Please provide an accurate solution including SQL or parameters configuration. Thank you very much sincerely.]]></description>
            <dc:creator>Jobs Wang</dc:creator>
            <category>General</category>
            <pubDate>Wed, 27 Aug 2025 07:05:41 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741128,741128#msg-741128</guid>
            <title>When I use JOIN to connect 4 tables, the query becomes extremely slow. How can I speed up the join query? (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,741128,741128#msg-741128</link>
            <description><![CDATA[ When I use JOIN to connect 4 big tables, the query is extremely slow. How can I speed up multi-table JOIN queries? Please provide an accurate solution including SQL or parameters configuration. Thank you very much sincerely.]]></description>
            <dc:creator>Jobs Wang</dc:creator>
            <category>General</category>
            <pubDate>Wed, 27 Aug 2025 07:00:33 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741086,741086#msg-741086</guid>
            <title>MySQL database gets stuck while adding a foreign key during frequent write activity (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,741086,741086#msg-741086</link>
            <description><![CDATA[ I am encountering a strange issue wherein MySQL 8.4 appears to get stuck when adding a new foreign key to a table. I&#039;ve found a workaround where I can kill some INSERT statements to unstick things, but I don&#039;t believe the database should be getting stuck in the first place.<br />
<br />
<br />
The schema of the impacted database has a bunch of tables; 3 of them are relevant to the issue in question. For the sake of example, let&#039;s imagine the database is tracking health information, and let&#039;s call these tables `person`, `heart_rate`, and `health_target` (this example is entirely made up, but the same impact applies). The `health_target` table does not yet exist in the database; the new table definition contains a foreign key pointing to the `id` column on the `person` table. The existing `heart_rate` table also has a foreign key pointing to the `id` column on the `person` table, and receives frequent writes, as it is tracking heart rate values over time.<br />
<br />
<br />
Adding the new `health_target` table without the foreign key works successfully as follows:<br />
<br />
mysql&gt; CREATE TABLE `health_target` (`id` varchar(36) NOT NULL, `person_id` varchar(36) NOT NULL, `target_data` json NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;<br />
Query OK, 0 rows affected (0.06 sec)<br />
<br />
<br />
Trying to add the foreign key as below causes the database to lock up completely:<br />
<br />
&gt; ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id);<br />
(never completes)<br />
<br />
<br />
Examining the contents of `information_schema.processlist` after executing the ALTER TABLE statement, I can see that the ALTER TABLE is stuck in a &quot;Waiting for table metadata lock&quot; state, as are a great number of INSERT and SELECT statements that reference the `person` table (which is a lot of statements, since this table has many references and the system is pretty busy servicing requests).<br />
<br />
mysql&gt; SELECT * FROM information_schema.processlist WHERE INFO IS NOT NULL ORDER BY time DESC;<br />
+-------+------+--------+------+---------+-------+---------------------------------+-------------------------------------------------------------------------------------------------------------------+<br />
| ID    | USER | HOST   | DB   | COMMAND | TIME  | STATE                           | INFO                                                                                                              |<br />
+-------+------+--------+------+---------+-------+---------------------------------+-------------------------------------------------------------------------------------------------------------------+<br />
| 29362 | root | &lt;HOST&gt; | NULL | Query   |    99 | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| 28866 | root | &lt;HOST&gt; | NULL | Query   |    89 | Waiting for table metadata lock | SELECT person.id, person.name, ...                                                                                |<br />
| 29590 | root | &lt;HOST&gt; | NULL | Query   |    89 | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| 29295 | root | &lt;HOST&gt; | NULL | Query   |    88 | Waiting for table metadata lock | SELECT person.id, person.name, ...                                                                                |<br />
| 29713 | root | &lt;HOST&gt; | NULL | Query   |    86 | Waiting for table metadata lock | SELECT person.id, person.name, ...                                                                                |<br />
| 29571 | root | &lt;HOST&gt; | NULL | Query   |    84 | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| 29625 | root | &lt;HOST&gt; | NULL | Query   |    84 | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| 29745 | root | &lt;HOST&gt; | NULL | Query   |    81 | Waiting for table metadata lock | SELECT person.id, person.name, ...                                                                                |<br />
+-------+------+--------+------+---------+-------+---------------------------------+-------------------------------------------------------------------------------------------------------------------+<br />
(output truncated for brevity)<br />
<br />
<br />
After some investigation, I&#039;ve discovered that I can un-stick the system by killing off a number of INSERT statements that appear to be in lock contention with the ALTER TABLE statement. When the system gets into the stuck state, the `performance_schema.metadata_locks` has data similar to the following:<br />
<br />
mysql &gt; SELECT OBJECT_TYPE, OBJECT_NAME, LOCK_TYPE, LOCK_DURATION, LOCK_STATUS, PROCESSLIST_STATE, PROCESSLIST_INFO FROM performance_schema.metadata_locks ml LEFT JOIN performance_schema.threads t ON ml.owner_thread_id = t.thread_id ORDER BY lock_type DESC;<br />
+-------------+----------------------------+---------------------+---------------+-------------+---------------------------------+-------------------------------------------------------------------------------------------------------------------+<br />
| OBJECT_TYPE | OBJECT_NAME                | LOCK_TYPE           | LOCK_DURATION | LOCK_STATUS | PROCESSLIST_STATE               | PROCESSLIST_INFO                                                                                                  |<br />
+-------------+----------------------------+---------------------+---------------+-------------+---------------------------------+-------------------------------------------------------------------------------------------------------------------+<br />
| TABLE       | heart_rate                 | SHARED_WRITE        | TRANSACTION   | GRANTED     | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| TABLE       | heart_rate                 | SHARED_WRITE        | TRANSACTION   | GRANTED     | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| TABLE       | heart_rate                 | SHARED_WRITE        | TRANSACTION   | GRANTED     | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| TABLE       | person                     | SHARED_UPGRADABLE   | STATEMENT     | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| TABLE       | person                     | SHARED_READ_ONLY    | STATEMENT     | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| TABLE       | person                     | SHARED_READ         | TRANSACTION   | PENDING     | Waiting for table metadata lock | SELECT person.id, person.name, ...                                                                                |<br />
| TABLE       | person                     | SHARED_READ         | TRANSACTION   | PENDING     | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| TABLE       | person                     | SHARED_READ         | TRANSACTION   | PENDING     | Waiting for table metadata lock | SELECT person.id, person.name, ...                                                                                |<br />
| TABLE       | person                     | SHARED_READ         | TRANSACTION   | PENDING     | Waiting for table metadata lock | SELECT person.id, person.name, ...                                                                                |<br />
| TABLE       | person                     | SHARED_READ         | TRANSACTION   | PENDING     | Waiting for table metadata lock | SELECT person.id, person.name, ...                                                                                |<br />
| TABLE       | person                     | SHARED_READ         | TRANSACTION   | PENDING     | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| TABLE       | person                     | SHARED_READ         | TRANSACTION   | PENDING     | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| GLOBAL      | NULL                       | INTENTION_EXCLUSIVE | STATEMENT     | GRANTED     | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| GLOBAL      | NULL                       | INTENTION_EXCLUSIVE | STATEMENT     | GRANTED     | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| TABLESPACE  | db/health_target           | INTENTION_EXCLUSIVE | TRANSACTION   | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| SCHEMA      | NULL                       | INTENTION_EXCLUSIVE | STATEMENT     | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| GLOBAL      | NULL                       | INTENTION_EXCLUSIVE | STATEMENT     | GRANTED     | Waiting for table metadata lock | INSERT INTO heart_rate (id, person_id, timestamp, value) VALUES ...                                               |<br />
| GLOBAL      | NULL                       | INTENTION_EXCLUSIVE | TRANSACTION   | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| GLOBAL      | NULL                       | INTENTION_EXCLUSIVE | STATEMENT     | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| BACKUP LOCK | NULL                       | INTENTION_EXCLUSIVE | TRANSACTION   | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| SCHEMA      | NULL                       | INTENTION_EXCLUSIVE | TRANSACTION   | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| TABLE       | #sql-7_e71d                | EXCLUSIVE           | STATEMENT     | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| FOREIGN KEY | fk_health_target_person_id | EXCLUSIVE           | STATEMENT     | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| TABLESPACE  | db/#sql-7_e71d             | EXCLUSIVE           | TRANSACTION   | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| TABLE       | health_target              | EXCLUSIVE           | TRANSACTION   | GRANTED     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
| TABLE       | person                     | EXCLUSIVE           | STATEMENT     | PENDING     | Waiting for table metadata lock | ALTER TABLE health_target ADD CONSTRAINT fk_health_target_person_id FOREIGN KEY (person_id) REFERENCES person(id) |<br />
+-------------+----------------------------+---------------------+---------------+-------------+---------------------------------+-------------------------------------------------------------------------------------------------------------------+<br />
(output truncated for brevity)<br />
<br />
<br />
If I issue a `kill &lt;PROCESS_ID&gt;` command for each of the entries in the above table marked as LOCK_TYPE=SHARED_WRITE and LOCK_STATUS=GRANTED (which are trying to INSERT into the `heart_rate` table), the ALTER TABLE command completes immediately and the system unlocks itself. Alternatively, killing the process for the ALTER TABLE statement will unlock the system as well, but that doesn&#039;t help with adding the foreign key.<br />
<br />
<br />
After running some experiments to reproduce this scenario and taking frequent dumps of the process list (I can provide samples if useful), it appears that:<br />
    - Some INSERT statements on the `heart_rate` table that were running when the ALTER TABLE was initially issued complete successfully before the system gets stuck<br />
    - Other INSERT statements on the `heart_rate` table that were running when the ALTER TABLE was initially issued end up competing for a lock on the `person` table and must be killed in order for the ALTER TABLE to complete<br />
    - INSERT statements on the `heart_rate` table that are issued after the system gets stuck complete successfully once the system is un-stuck<br />
<br />
<br />
Based on what I&#039;ve observed, I would guess that I might be encountering an issue somewhere in the lock acquisition handling for the ALTER TABLE and INSERT statements. It seems like there is a brief period where a write lock on the `heart_rate` table is being granted to one or more INSERT statements, which may include some sort of implicit lock on the `person` table due to the foreign key that is also being granted (I&#039;m guessing at this part). The ALTER TABLE statement is subsequently attempting to acquire an exclusive metadata lock on the `person` table, which it needs in order to create the new foreign key, but it&#039;s unable to acquire this lock because the INSERT statements are blocking it. Meanwhile, the INSERT statements are unable to move forward because they are blocked by the ALTER TABLE&#039;s acquisition of the metadata lock on the `person` table, so the system gets stuck. There&#039;s some nuance here in that the `person` table that appears to be causing the lock contention isn&#039;t directly involved in the ALTER TABLE or the INSERT statements; rather, it&#039;s referenced by foreign keys on each of the tables in those statements.<br />
<br />
<br />
I&#039;m not sure if this is relevant, but I managed to capture a process list that indicated the ALTER TABLE statement initially had a STATE of &quot;After create&quot; shortly after the statement was issued. Maybe the INSERT statements that are issued during this initial stage are granted write locks, and then get deadlocked once the ALTER TABLE tries to acquire a metadata lock?<br />
<br />
<br />
I&#039;ve tried dumping the contents of `SHOW ENGINE INNODB STATUS;`, and there&#039;s no mention of a deadlock being detected in there. It has indication that the ALTER TABLE statement is attempting to acquire a lock, but no mention of a deadlock.<br />
<br />
<br />
Similar ALTER TABLE statements were working just fine using MySQL 5.7; we upgraded to 8.0 and then to 8.4, and have started encountering this issue. This seems like it might align with the metadata locking on both tables involved in a foreign key that was introduced in MySQL 8.0.3.<br />
<br />
<br />
While there is some form of workaround here, it involves data loss (as valid INSERT statements need to be killed), so it&#039;s not particularly viable. It also seems problematic that the database would effectively deadlock itself on a table without identifying it as a deadlock, so I&#039;m tempted to call this a bug, but maybe there&#039;s something else going on here. I&#039;d be curious on hearing any thoughts or feedback on this issue, and can submit a bug report if appropriate.]]></description>
            <dc:creator>Tayler Sokalski</dc:creator>
            <category>General</category>
            <pubDate>Fri, 15 Aug 2025 23:15:08 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,741078,741078#msg-741078</guid>
            <title>coufused about ibtmp1 (4 replies)</title>
            <link>https://forums.mysql.com/read.php?20,741078,741078#msg-741078</link>
            <description><![CDATA[ i read 8.0/8.4 documents, the user created temp tables are in #innodb_temp dir, the parameter innodb_temp_tablespaces_dir defines the #innodb_temp dir.<br />
<br />
<br />
but why i also see the below description about user-created temporary tables will be in ibtmp1:<br />
InnoDB user-created temporary tables and on-disk internal temporary tables are created in a temporary tablespace file named ibtmp1 in the MySQL data directory.<br />
<br />
<a href="https://dev.mysql.com/doc/refman/8.4/en/temporary-files.html"  rel="nofollow">https://dev.mysql.com/doc/refman/8.4/en/temporary-files.html</a>]]></description>
            <dc:creator>victor victor</dc:creator>
            <category>General</category>
            <pubDate>Thu, 20 Nov 2025 20:22:19 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740837,740837#msg-740837</guid>
            <title>How can I speed this query up? (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740837,740837#msg-740837</link>
            <description><![CDATA[ I just ran this query and it took 21 seconds.<br />
Other short queries are almost instantaneous so it&#039;s not bandwidth.<br />
<br />
The answers table is the largest table in the database having under 17,000 records total. This app is still in development not in operation yet.<br />
<br />
RecordID, SurveyID and AttributionID are all indexed.<br />
SolutionID, Table1ID and Table2ID make up a unique ID in the organization3_division3 table.<br />
<br />
<br />
SELECT COUNT(DISTINCT surveys.RecordID) <br />
FROM answers INNER JOIN surveys ON answers.SurveyID = surveys.RecordID <br />
WHERE surveys.SolutionID = 3 AND surveys.RecordID IN <br />
	(SELECT SurveyID FROM answers WHERE AttributionID IN <br />
		(SELECT AttributionID FROM attrib_organization3_rl WHERE FieldID <br />
			IN (SELECT TABLE1ID FROM organization3_division3 WHERE TABLE2ID = 2)))<br />
AND surveys.RecordID IN <br />
	(SELECT SurveyID FROM answers WHERE AttributionID IN <br />
		(SELECT AttributionID FROM attrib_forklift3_rl WHERE FieldID <br />
			IN (SELECT RecordID FROM forklift3 WHERE lnk_fuel_type = 1)))]]></description>
            <dc:creator>Kristy Atkins</dc:creator>
            <category>General</category>
            <pubDate>Wed, 18 Jun 2025 21:28:01 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740836,740836#msg-740836</guid>
            <title>Why do these 2 queries return different results? (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740836,740836#msg-740836</link>
            <description><![CDATA[ I have 2 queries that appear to me to be logically the same.<br />
They are returning different counts.<br />
<br />
I need the count of all surveys where <br />
the SolutionID = 3, the division is 2 and the fuel type is 1.<br />
<br />
However, I also need access to tblRec1 and tblRec2.<br />
<br />
Why are they returning different counts?<br />
How can I get an accurate count AND have access to tblRec1 and tblRec2?<br />
<br />
SELECT COUNT(DISTINCT surveys.RecordID) <br />
FROM answers INNER JOIN surveys ON answers.SurveyID = surveys.RecordID <br />
WHERE surveys.SolutionID = 3 AND surveys.RecordID IN <br />
	(SELECT SurveyID FROM answers WHERE AttributionID IN <br />
		(SELECT AttributionID FROM attrib_organization3_rl WHERE FieldID <br />
			IN (SELECT TABLE1ID FROM organization3_division3 WHERE TABLE2ID = 2)))<br />
AND surveys.RecordID IN <br />
	(SELECT SurveyID FROM answers WHERE AttributionID IN <br />
		(SELECT AttributionID FROM attrib_forklift3_rl WHERE FieldID <br />
			IN (SELECT RecordID FROM forklift3 WHERE lnk_fuel_type = 1)))<br />
<br />
<br />
<br />
<br />
SELECT COUNT(DISTINCT surveys.RecordID) AS Cnt <br />
FROM answers INNER JOIN surveys ON answers.SurveyID = surveys.RecordID <br />
	INNER JOIN attrib_organization3_rl AS tblAtr 		<br />
		INNER JOIN organization3_division3 AS tblMlt <br />
			INNER JOIN division3 AS tblRec1 <br />
			ON tblMlt.Table2ID = tblRec1.RecordID 		<br />
		ON tblAtr.FieldID = tblMlt.Table1ID <br />
	ON answers.AttributionID = tblAtr.AttributionID <br />
WHERE surveys.SolutionID = 3 AND tblRec1.RecordID = 2 AND surveys.RecordID IN (<br />
	SELECT DISTINCT SurveyID FROM answers <br />
		INNER JOIN attrib_forklift3_rl AS tblAtr <br />
			INNER JOIN forklift3 AS tblLnkd <br />
				INNER JOIN fuel_type3 AS tblRec2 <br />
				ON tblLnkd.lnk_fuel_type = tblRec2.RecordID <br />
			ON tblAtr.FieldID = tblRec2.RecordID <br />
		ON answers.AttributionID = tblAtr.AttributionID <br />
	WHERE tblRec2.RecordID = 1)]]></description>
            <dc:creator>Kristy Atkins</dc:creator>
            <category>General</category>
            <pubDate>Wed, 18 Jun 2025 20:25:51 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740797,740797#msg-740797</guid>
            <title>Persisent root issues through multiple re-installs (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740797,740797#msg-740797</link>
            <description><![CDATA[ I am experiencing for the first time in many years of using MySQL, an issue with the root user which persists across reinstallations - even of different mysql versions.<br />
<br />
I have now cycled through 9.2, 9.3, 8.4.5 and 8.0.42<br />
<br />
After a first connection to the server, whether this is done from Workench or command line, I am unable to connect again.<br />
<br />
8.0.42 rejects the password and after a few attempts outputs the classic error<br />
&quot;Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: YES)&quot;<br />
<br />
8.4.5, 9.2 and 9.3 instead, report that it can&#039;t login using the &quot;native_password&quot; plugin, although the root user was clearly set to use sha authentication<br />
<br />
I am clueless]]></description>
            <dc:creator>Andrea P</dc:creator>
            <category>General</category>
            <pubDate>Mon, 09 Jun 2025 09:52:26 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740785,740785#msg-740785</guid>
            <title>Hello from Cytion – Curious About MySQL in Bioinformatics (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740785,740785#msg-740785</link>
            <description><![CDATA[ Hi everyone,<br />
<br />
Glad to join the community! I’m part of a biotech company called Cytion, where we work extensively with biological data — including research on HeLa cells. While we’re solid on the science side, we’re now diving deeper into managing complex datasets more efficiently, and that’s what led me to MySQL.<br />
<br />
Quick question for the community: Has anyone here used MySQL (or similar relational databases) to manage or analyze biological datasets — like cell lineage tracking, gene expression data, or HeLa cell experimental logs? We’re exploring different database architectures and would love to hear what’s worked for others in the bio/medical research space.<br />
<br />
Looking forward to learning from all of you!<br />
<br />
Best,<br />
Cytion]]></description>
            <dc:creator>Cytion Info</dc:creator>
            <category>General</category>
            <pubDate>Thu, 05 Jun 2025 05:14:34 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740774,740774#msg-740774</guid>
            <title>ERROR 1045 (28000): Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: YES)) (2 replies)</title>
            <link>https://forums.mysql.com/read.php?20,740774,740774#msg-740774</link>
            <description><![CDATA[ I am working from a book, (Learning PHP, MySQL &amp; JavaScript, 6th Edition, by Robin Nixon), and have started the MySQL section of the work.The first thing I need to do is change to C:/&quot;Program Files/Ampps/mysql/bin&quot;, which I have done, and can see this from the C: prompt. It then says to enter mysql -u root -pmysql. This results in the message:<br />
<br />
ERROR 1045 (28000): Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: YES))<br />
<br />
Simple question, what is wrong here?]]></description>
            <dc:creator>Adrian Worley</dc:creator>
            <category>General</category>
            <pubDate>Mon, 02 Jun 2025 15:40:48 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740636,740636#msg-740636</guid>
            <title>mysql should have a faster storage engine than &quot;InnoDB&quot;  like MariaDB  &quot;RocksDB&quot;    .... (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740636,740636#msg-740636</link>
            <description><![CDATA[ MySQL should have a faster storage engine than &quot;InnoDB&quot; (like MariaDB &quot;RocksDB&quot;).<br />
InnoDB  is rather slow and existing (other) storage engines are not useful for daily use.  <br />
<br />
thanks]]></description>
            <dc:creator>André verwijs</dc:creator>
            <category>General</category>
            <pubDate>Tue, 29 Apr 2025 10:19:39 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740601,740601#msg-740601</guid>
            <title>Tables Optimization (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740601,740601#msg-740601</link>
            <description><![CDATA[ Hello team,<br />
We have 2 tables. tableA with 7,285,239 rows and tableB with 178,921,615 rows.<br />
We have to join these 2 tables and use Distinct and ORDER BY 2 columns.<br />
We have added the required indexes in both the tables.<br />
<br />
It is taking more than 15 seconds to show the response in the UI.<br />
<br />
Please let us know how to optimize this query.<br />
<br />
Table1 is having 75 columns.<br />
<br />
Table2 DDL<br />
CREATE TABLE `Table2` (<br />
  `Id` bigint NOT NULL AUTO_INCREMENT,<br />
  `FolderId` int NOT NULL,<br />
  `Table1_Id` bigint NOT NULL,<br />
  `ParentTable1_Id` bigint DEFAULT NULL,<br />
  PRIMARY KEY (`Id`),<br />
  KEY `IX_Table2_Table1_Id` (`Table1_Id`),<br />
  KEY `IX_Table2_FolderId` (`FolderId`),<br />
  KEY `IX_Table2_ParentTable1_Id` (`ParentTable1_Id`),<br />
  CONSTRAINT `FK_Table2_Table1_Table1_Id` FOREIGN KEY (`Table1_Id`) REFERENCES `Table1` (`Id`) ON DELETE RESTRICT,<br />
  CONSTRAINT `FK_Table2_Folders_FolderId` FOREIGN KEY (`FolderId`) REFERENCES `Folders` (`Id`) ON DELETE RESTRICT<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;]]></description>
            <dc:creator>Mahadevan Ganesan</dc:creator>
            <category>General</category>
            <pubDate>Mon, 21 Apr 2025 03:24:04 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740573,740573#msg-740573</guid>
            <title>Semantic usage of Insert and Update is wrong (1 reply)</title>
            <link>https://forums.mysql.com/read.php?20,740573,740573#msg-740573</link>
            <description><![CDATA[ From a semantic standpoint: <br />
Insert should only be used to insert data into any empty or partially empty record(s).<br />
Update should only be use to update (change) existing data.<br />
<br />
Taking a 5 column table as an example:<br />
<br />
Either<br />
Insert into table (Column1,Column2,Column3) values (value1,value2,value3)<br />
<br />
Or<br />
Insert into table values (value1, value2, value3, value4, value5)<br />
<br />
In the first example, a partial insert, multiple columns remain unpopulated.<br />
As I stated above, semantically speaking, it makes sense to use insert to populate columns for the first time.<br />
<br />
If column1 is Email: <br />
Insert into tableName (column4, column5) values (value4,value5) where column1 = &quot;EmailAddress&quot;<br />
<br />
Then<br />
Update table tableName set columnName = &quot;newValue&quot; where Column1 = &quot;EmailAddress&quot;<br />
<br />
Semantically correct, but unfortunately, not how SQL was designed or implemented.]]></description>
            <dc:creator>Richard Dunne</dc:creator>
            <category>General</category>
            <pubDate>Sun, 11 May 2025 07:13:24 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740537,740537#msg-740537</guid>
            <title>Dynamic SQL with Dynamic xpath variable (3 replies)</title>
            <link>https://forums.mysql.com/read.php?20,740537,740537#msg-740537</link>
            <description><![CDATA[ I have a loop that I am using to populate a variable with an xpath.<br />
<br />
     @xpath = concat(&#039;/record[&#039;,i,&#039;]/firstName&#039;);<br />
<br />
I then have a variable I used to populate my sql statement.<br />
<br />
     @sql = &#039;select @value:=EXTRACTVALUE(xml,@xpath)&#039;;<br />
<br />
then I use this statement to call the dynamic SQL.<br />
<br />
     PREPARE dynamic_statement1 FROM @valuesql;<br />
     EXECUTE dynamic_statement1;<br />
     DEALLOCATE PREPARE dynamic_statement1;<br />
<br />
What is weird is it works some of the time and sometimes not and I can&#039;t find a pattern. I know my xpath is correct because if I just run this with the static xpath it returns a value.<br />
<br />
     SELECT @value:=EXTRACTVALUE(XML,&#039;/record[1]/firstName&#039;);<br />
<br />
Any ideas?]]></description>
            <dc:creator>P Rike</dc:creator>
            <category>General</category>
            <pubDate>Mon, 12 Jan 2026 10:37:42 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740473,740473#msg-740473</guid>
            <title>How can I find out the creation date of a MySQL user? (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740473,740473#msg-740473</link>
            <description><![CDATA[ Hi team good morning/evening<br />
<br />
How can I find out the creation date of a MySQL user?<br />
<br />
Thanks a lot.]]></description>
            <dc:creator>Carlo Valencia</dc:creator>
            <category>General</category>
            <pubDate>Fri, 21 Mar 2025 00:55:08 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740466,740466#msg-740466</guid>
            <title>Backup / Restore does not respect umlauts (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740466,740466#msg-740466</link>
            <description><![CDATA[ Hey<br />
I am new here in this forum.<br />
<br />
I have an old mySQL 5 Server (5.5.28)<br />
The access is by remote.<br />
Within the server, I have a database, which has the following settings:<br />
Charset  =  latin1<br />
Collation  Name = latin1_german1_ci<br />
<br />
I do a mysqldump, like this (from my new computer):<br />
mysqldump -u -p -h --skip-set-charset --default-character-set=latin1 --routines -r ~DESTINATION FILE~<br />
<br />
This creates my sql file as expected.<br />
When I open the file with Notepad++, it is opened as ANSI, where all umlauts are correct shown.<br />
<br />
My local mySQL Server is Version: 8.4.4<br />
The database table has charset: utf8mb4<br />
and Collation Name = utf8mb4_0900_ai_ci.<br />
<br />
I try to import the file with the following command:<br />
mysql -u -p -h --default-character-set= utf8 ~databaseName~ &lt; ~DataFile~<br />
<br />
but the problem is, that the umlauts are not shown correctly.<br />
For Example.<br />
The original value is &#039;Nürnberg&#039;<br />
The value I get in my database = &#039;NÃ¼rnberg&#039;<br />
And the hex of the new value = 4EC3BC726E62657267<br />
<br />
I also tried to use this on my new server:<br />
<br />
SET character_set_client = latin1; <br />
SET character_set_connection = latin1; <br />
SET character_set_results = latin1;<br />
<br />
But without positive result.<br />
Can someone please help me.<br />
<br />
THX a lot in advance]]></description>
            <dc:creator>Harald Bacik</dc:creator>
            <category>General</category>
            <pubDate>Thu, 20 Mar 2025 12:30:40 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740411,740411#msg-740411</guid>
            <title>How does MySQL differ from other relational database management systems? (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740411,740411#msg-740411</link>
            <description><![CDATA[ I want to know How does MySQL differ from other relational database management systems?]]></description>
            <dc:creator>jefferson sam</dc:creator>
            <category>General</category>
            <pubDate>Mon, 10 Mar 2025 06:41:28 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740380,740380#msg-740380</guid>
            <title>mysql crashing on starup in windows 11 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?20,740380,740380#msg-740380</link>
            <description><![CDATA[ I am using mysql community version on windows 11 profession version. Mysql sometimes crash when my workstation restart up. I set mysql as server and when I start mysql manually, I will not have any problem, the issue always comes windows 11 startup, I check event viewer, I got the following message<br />
<br />
Faulting application name: mysqld.exe, version: 8.0.41.0, time stamp: 0x67601309<br />
Faulting module name: mysqld.exe, version: 8.0.41.0, time stamp: 0x67601309<br />
Exception code: 0x80000003<br />
Fault offset: 0x0000000001134d82<br />
Faulting process id: 0x1AC8<br />
Faulting application start time: 0x1DB8D176B3C86B2<br />
Faulting application path: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe<br />
Faulting module path: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe<br />
Report Id: d4516675-a262-483c-8b82-e5ecae2fb3ee<br />
Faulting package full name: <br />
Faulting package-relative application ID: <br />
<br />
<br />
I check error log, I don&#039;t get any error message, <br />
<br />
mysql is 8.0.41.<br />
<br />
does anybody know where the issue.]]></description>
            <dc:creator>Martin H</dc:creator>
            <category>General</category>
            <pubDate>Thu, 20 Mar 2025 12:46:32 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740215,740215#msg-740215</guid>
            <title>remove letters and left zeros at the same time (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,740215,740215#msg-740215</link>
            <description><![CDATA[ how do i do to remove letters and left zeros at the same time<br />
<br />
Example:<br />
F00801<br />
<br />
Pretended:<br />
<br />
801<br />
<br />
I did TRIM(LEADING &#039;F&#039; FROM i.external_code) AS Cod_Forn<br />
and it came 00801 but, i want 801<br />
<br />
Thank you]]></description>
            <dc:creator>Hugo ARaujo</dc:creator>
            <category>General</category>
            <pubDate>Wed, 05 Feb 2025 11:58:23 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,740153,740153#msg-740153</guid>
            <title>Watching for schema changes (2 replies)</title>
            <link>https://forums.mysql.com/read.php?20,740153,740153#msg-740153</link>
            <description><![CDATA[ Hi, ALL,<br />
<br />
Is there a way to get a notification when somebody did CREATE/ALTER/DROP TABLE/INDEX?<br />
<br />
I know mySQL didn&#039;t provide anything in the past but maybe new version changes this?<br />
<br />
Thank you.]]></description>
            <dc:creator>Igor Korot</dc:creator>
            <category>General</category>
            <pubDate>Sun, 04 May 2025 19:29:06 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,739894,739894#msg-739894</guid>
            <title>IS the compare in where clause caused different? (no replies)</title>
            <link>https://forums.mysql.com/read.php?20,739894,739894#msg-739894</link>
            <description><![CDATA[ IN Mysql 8.0.26， the following two select sql result is different, why?<br />
<br />
<br />
CREATE TABLE testjs(js json);<br />
<br />
CREATE TABLE testtext(tx text);<br />
<br />
INSERT INTO testjs values(&#039;&quot;abc&quot;&#039;);<br />
<br />
INSERT INTO testext values(&#039;abc&#039;);<br />
<br />
<br />
SELECT js = tx FROM testjs, testtext;<br />
-------------------------------------------------<br />
<br />
1<br />
<br />
<br />
SELECT * FROM testjs, testtext WHERE js = tx;<br />
-------------------------------------------------<br />
<br />
empty set<br />
<br />
<br />
IS the compare in where clause caused different?]]></description>
            <dc:creator>翊玮 赵</dc:creator>
            <category>General</category>
            <pubDate>Mon, 23 Dec 2024 03:28:53 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,739893,739893#msg-739893</guid>
            <title>Why the two sql result is different? (1 reply)</title>
            <link>https://forums.mysql.com/read.php?20,739893,739893#msg-739893</link>
            <description><![CDATA[ IN Mysql 8.0.26， the following two select sql result is different, why?<br />
<br />
<br />
CREATE TABLE testjs(js json);<br />
<br />
CREATE TABLE testtext(tx text);<br />
<br />
INSERT INTO testjs values(&#039;&quot;abc&quot;&#039;);<br />
<br />
INSERT INTO testext values(&#039;abc&#039;);<br />
<br />
<br />
SELECT js = tx FROM testjs, testtext;<br />
-------------------------------------------------<br />
<br />
1<br />
<br />
<br />
SELECT * FROM testjs, testtext WHERE js = tx;<br />
-------------------------------------------------<br />
<br />
empty set<br />
<br />
<br />
IS the compare in where clause caused different?]]></description>
            <dc:creator>翊玮 赵</dc:creator>
            <category>General</category>
            <pubDate>Thu, 20 Mar 2025 12:53:38 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,731128,731128#msg-731128</guid>
            <title>MySQL table with partitions on remote servers (only paritions) (2 replies)</title>
            <link>https://forums.mysql.com/read.php?20,731128,731128#msg-731128</link>
            <description><![CDATA[ Hello, in PostgreSQL you can create a table with let&#039;s say 4 paritions (hash)<br />
and locate each parition on different servers (remote PostgreSQL servers) and it&#039;s called (Foregin Data Wrapper). Now in MySQL i heard there is a Federated engine which you can connect to a remote server with it but it just work for a table not its paritions. I know i can use NDB but i want to have multiple MySQL servers and manage data spread by my self (based on the table paritions). Is there any solution in MySQL to make a table (Innodb) and spread its paritions on multiple remote MySQL servers ?]]></description>
            <dc:creator>Ali Saeidi</dc:creator>
            <category>General</category>
            <pubDate>Mon, 12 Jan 2026 10:41:33 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?20,730019,730019#msg-730019</guid>
            <title>Copy Subset of Table to another Table (1 reply)</title>
            <link>https://forums.mysql.com/read.php?20,730019,730019#msg-730019</link>
            <description><![CDATA[ Hi folks,<br />
<br />
I have a batch file that copies a table from one database to another...<br />
<br />
&quot;\\mysqlPath\mysqldump.exe&quot; -h 10.1.1.1 -uroot -ppassword dbname customers &gt; \\sqlPath\customers.sql<br />
&quot;\\mysqlPath\bin\mysql.exe&quot; -uroot -ppassword -h localhost dbname2 &lt; \\sqlPath\customers.sql<br />
<br />
It all works fine. <br />
<br />
But what I really want is a subset of the source table to be copied across. <br />
Instead of all Customers, I would like customers with a given country ID. e.g SELECT * FROM customers WHERE countryID = &quot;DE&quot;. Can this be done? <br />
<br />
I tried to create a VIEW insted of a table...<br />
<br />
&quot;\\mysqlPath\mysqldump.exe&quot; -h 10.1.1.1 -uroot -ppassword dbname customersgermanyVIEW &gt; \\sqlPath\customers.sql<br />
&quot;\\mysqlPath\bin\mysql.exe&quot; -uroot -ppassword -h localhost dbname2 &lt; \\sqlPath\customers.sql<br />
<br />
But it just creates a VIEW with the same name on the destination which is of no use.<br />
<br />
Is there any around this ?<br />
<br />
J]]></description>
            <dc:creator>John Noble</dc:creator>
            <category>General</category>
            <pubDate>Wed, 04 Jun 2025 12:40:51 +0000</pubDate>
        </item>
    </channel>
</rss>
