Difference between revisions of "Database"
Jump to navigation
Jump to search
(→MySQL) |
(→Tools) |
||
Line 54: | Line 54: | ||
* http://www.ssw.com.au/ssw/Standards/Rules/RulesToBetterSQLServerDatabases.aspx | * http://www.ssw.com.au/ssw/Standards/Rules/RulesToBetterSQLServerDatabases.aspx | ||
− | === | + | === mysqldump === |
* [http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html mysqldump] | * [http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html mysqldump] | ||
+ | ** http://stackoverflow.com/questions/104612/run-mysqldump-without-locking-tables | ||
+ | ** http://www.cyberciti.biz/faq/linux-unix-mysqldump-got-error1044-access-denied/ | ||
+ | === Tools === | ||
* http://dbdeploy.com/ | * http://dbdeploy.com/ | ||
− | * http://davedevelopment.co.uk/2008/04/14/how-to-simple-database-migrations-with-phing-and-dbdeploy.html | + | ** http://davedevelopment.co.uk/2008/04/14/how-to-simple-database-migrations-with-phing-and-dbdeploy.html |
https://github.com/tanin47/php_db_migrate | https://github.com/tanin47/php_db_migrate | ||
* https://bitbucket.org/stepancheg/mysql-diff/wiki/Home | * https://bitbucket.org/stepancheg/mysql-diff/wiki/Home |
Revision as of 09:12, 15 July 2012
MySQL
- MySQL Reference Manuals
- 4.3.1. mysqld — The MySQL Server
- 4.6.7. mysqlbinlog — Utility for Processing Binary Log Files
- 5.1.2. Server Command Options
- 5.3. MySQL Server Logs
- Remote Clients Cannot Connect - #mysql wiki
Commands
http://dev.mysql.com/doc/refman/5.6/en/create-user.html
show databases; show tables; use [db name]; flush privileges;
grant all on userdatabase.* TO 'username'; [1] 13.7.5.17. SHOW GRANTS Syntax
Create command list for showing user grants [2]
SELECT CONCAT("SHOW GRANTS FOR '",user,"'@'",host,"';") FROM mysql.user WHERE host!='localhost';
SELECT table_schema "Data Base Name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema ;
MariaDB
Web interfaces
Admin
mysqldump
Tools
https://github.com/tanin47/php_db_migrate
- http://dbug.ospinto.com/ - "PHP version of ColdFusion’s cfdump. Outputs colored and structured tabular variable information. Variable types supported are: Arrays, Classes/Objects, Database and XML Resources."