ie Kommandozeile des Systems haben!\\
Stoppen Sie den mysqld-Demon und starten Sie ihn auf der Kommandozeile mit der Option --skip-grant-tables.\\
Stellen Sie eine ... ause this should be a highly protected file.)
<code>sudo cat /etc/mysql/debian.cnf</code>
Now, log in to mysql using the root password you set above:
<code>mysql -p -u root # use your new password when prompted</code>
Reset the password for the debian-sys-maint use... to flush privileges:
<code>
> SET PASSWORD FOR 'debian-sys-maint'@'localhost' = PASSWORD('password_from_/etc/mysql/debian.cnf');
> FLUSH PRIVILEGES;
> QUIT
</code>
p/qunit1.sql
</code>
Backup-Dump einspielen:
<code>mysql -u USERNAME -p newdbname < /path/to/new/dump.sql</code>
<code>mysql -u root -p qunit1 < neue.daten.sql</code>
Achtung: Nach dem Import sind alle Nutzer und PWs so wie auf dem Server.
Wenn man vorher ein anderes PW vergeben hat, so ist dieses nun weg...
Listing 3: Einspi
uf UTF-8 umgestellt.
Ein (altes) MS-Windows verwendet i.d.R. den imb-Zeichensatz Codepage 850.
Zum Konvertieren in die SQL-Codepage verwende ich //recode//:
<code>
recode UTF-8..latin1 <Ursprung-UTF-8.csv >Ergebnis-latin1.csv
</code>
s ID-Feldes auf einen beliebigen Wert setzen:
<code>ALTER TABLE [tbl_name] AUTO_INCREMENT = 12345</code>
Aktuellen auto_increment Wert ausgeben:
<code>SHOW TABLE STATUS FROM `database` LIKE 'table'</code>