Support:Queries: Difference between revisions
Content deleted Content added
imported>Kymara |
imported>Hendrik Brummermann |
||
Line 17:
</source>
=== Merge
<source lang="SQL">▼
1. Learn the name of the original account and new one:
<pre>
SELECT account.username, account.status
FROM characters, account
WHERE account.id=player_id AND charname='[charname]';
</pre>
2. As user marauroa execute the following script. <nowiki>[oldaccount]</nowiki> is the account name, from which the characters are taken away.
cd /var/www/stendhal/scripts/cmd
php merge.php [oldaccount] [newaccount]
</source>
| |||