title: MySQL UUID primary key - generated by PHP or by MySQL?
body: <p>I was under the impression that just having MySQL generate the primary key via <code>UUID()</code> would make the key unique across servers, etc. </p>
  
  <p>But, <a href="https://stackoverflow.com/questions/9379282/php-mysql-insert-id-for-mysql-uuid-primary-keys">there is no way to fetch the last inserted UUID</a>, which requires that an extra select statement be done each time I insert. </p>
  
  <p>Is it possible to have PHP generate the exact same <code>UUID()</code> that MySQL would generate? </p>