Tags: mysql

Mysql dump - Extract databases as files from a full dump

Linux, CentOS, MySQL Send feedback »
for DB in `grep "Current Database:" all-databases.sql | replace "-- Current Database: " "" | tr -d "\\\`" `; do sed -n "/-- Current Database: \`$DB\`/,/-- Current Database:/p" all-databases.sql > ${DB}.sql; done Complicated... yes.. you're right. Let'… more »

Index the full length of a column... no way !

MySQL Send feedback »
Let's assume we have table called "Users" and that table has a filed called "UserName".As the assumptions continue... you are in charge of setting an index on that field.mysql> SELECT * FROM COLUMNS -> WHERE TABLE_SCHEMA = 'some_db' AN… more »
Contact. ©2010 by Gabriel PREDA. blog software / web hosting / monetize.
Design & icons by N.Design Studio. Skin by Tender Feelings / Evo Factory.