Sysop:MySQL: Unterschied zwischen den Versionen

Aus immerda
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
== cluster ==
== cluster ==
* http://www.lod.com/whitepapers/mysql-cluster-howto.html
* http://www.lod.com/whitepapers/mysql-cluster-howto.html
== dump ==
structure:
  mysqldump --opt --no-data -u user --password="pwd" database | bzip2 -c > database_db_dump_structure.sql.bz2
data:
  mysqldump --opt --no-create-info -u user --password="pwd" database | bzip2 -c > database_db_dump_data.sql.bz2


== adding new user accounts ==
== adding new user accounts ==
Zeile 14: Zeile 22:


[[Category:ImmerdaDocumentationProject]]
[[Category:ImmerdaDocumentationProject]]
[[Category:MySQL]]

Version vom 10. April 2007, 10:31 Uhr

cluster

dump

structure:

 mysqldump --opt --no-data -u user --password="pwd" database | bzip2 -c > database_db_dump_structure.sql.bz2

data:

 mysqldump --opt --no-create-info -u user --password="pwd" database | bzip2 -c > database_db_dump_data.sql.bz2

adding new user accounts

mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
    ->     IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%'
    ->     IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql> GRANT RELOAD,PROCESS ON *.* TO 'admin'@'localhost';
mysql> GRANT USAGE ON *.* TO 'dummy'@'localhost';