<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You can find the bugtracker here: </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="https://bugzilla.wikimedia.org/enter_bug.cgi?product=Wikimedia%20Labs"><span lang=EN-US>https://bugzilla.wikimedia.org/enter_bug.cgi?product=Wikimedia%20Labs</span></a></span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jan<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> labs-l-bounces@lists.wikimedia.org [mailto:labs-l-bounces@lists.wikimedia.org] <b>Im Auftrag von </b>Magnus Manske<br><b>Gesendet:</b> Dienstag, 28. Mai 2013 11:39<br><b>An:</b> Wikimedia Labs<br><b>Betreff:</b> Re: [Labs-l] Temporary tables?<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Thanks, it works!<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Also, couldn't find bugtracker link for labs, so I'll post it here: Table "globalimagelinks" is not in the commonswiki_p replica.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal>Magnus<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Mon, May 27, 2013 at 12:08 AM, Tim Landscheidt <<a href="mailto:tim@tim-landscheidt.de" target="_blank">tim@tim-landscheidt.de</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Magnus Manske <<a href="mailto:magnusmanske@googlemail.com">magnusmanske@googlemail.com</a>> wrote:<br><br>> Just saw the database replicas for Lab Tools today - great progress!<br><br>> Quick (I hope...) question: Can a tool create a temporary table that can<br>> "see" a database (e.g. enwiki_p)?<br><br>> On the toolserver, I connected to my user database on the "<br>> <a href="http://enwiki-p.userdb.toolserver.org" target="_blank">enwiki-p.userdb.toolserver.org</a>" server. How can this be done on labs?<o:p></o:p></p></div></div><p class=MsoNormal>Just connect to enwiki.labsdb. There you can create data-<br>bases with names that begin with your replicated databases<br>username (u1234) and two underscores<br>(cf. <a href="https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Creating_databases" target="_blank">https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Creating_databases</a>).<br>For example:<br><br>| MariaDB [enwiki_p]> CREATE DATABASE u1234__test2;<br>| Query OK, 1 row affected (0.03 sec)<br><br>| MariaDB [enwiki_p]> CREATE TABLE u1234__test2.test2 (page_id INTEGER);<br>| Query OK, 0 rows affected (0.04 sec)<br><br>| MariaDB [enwiki_p]> INSERT INTO u1234__test2.test2 (page_id) SELECT page_id FROM page WHERE page_id < 1000;<br>| Query OK, 381 rows affected (0.03 sec)<br>| Records: 381 Duplicates: 0 Warnings: 0<br><br>| MariaDB [enwiki_p]><br><br>Tim<br><br><br>_______________________________________________<br>Labs-l mailing list<br><a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br><a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>