for($i = 0; $i < 50000; $i++)
$pdo->exec("INSERT INTO table_x (the_string) VALUES (UUID());");
As described here
Edit: alternative insertion method (alternating dashes)
for($i = 0; $i < 50000; $i++)
$pdo->exec("INSERT INTO table_x (the_string) VALUES (REPLACE(UUID(), '-', ''));");
Edit is worth mentioning:
Inside a single server, UUIDs encode the geographic location and exact time, as well as random sha-1 values.
Thus, the probability of a collision exists only on individual servers (for example, when combining their data sets).
Until we overflow the capacity of geo-time intervals, we are guaranteed not to create duplicate values locally.
( ) UUID (16) ( ) .