Konsole.
- Geben Sie folgenden Befehl ein:
<code>mysqladmin --user=root --password=<altes_pw> password <neues_pw></code>
Wenn man aber nicht mehr als Root reinkommt hel... ew servers, you can use mysqladmin to fix it:
<code>mysql -p -u root password 'newpassword'</code>
However, when you apt-get installed mysql-serve... 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
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 e... ses dump") die mehrere Datenbanken beinhaltet
<code>
mysql -u root -p --one-database dbname < backup.sql
</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>