Tagged: mysql

0

Analyzing top gainer loser data

Housekeeping with mysql Downloading data from wsj using python script here Concatenating daily files # Below command concatenates files and skips the first row of each file $ tail -q -n +2 *.tsv > /tmp/stock_aggr.tsv Creating table in mysql drop...

0

Fixing large mysql ibdata1 resulting from ranger audits

Table Partitioning in MySQL: (Version 5.1.6 or above) Note: Before starting backup/restore please stop all running application which usage XA_ACCESS_AUDIT table. this will be help for keeping snapshot of XA_ACCESS_AUDIT for particular timestamp. Table Partitioning in MySQL:- Partitioned tables created...

0

Shrinking mysql ibdata1 file

Manual steps overview Export all databases except mysql & information_schema $ mysqldump -u root -p ranger_audit > /backup_directory/db_ranger_audit_<currdate>.sql   Drop all databases except mysql & information_schema mysql> drop database ranger_audit;   Stop mysql $ service mysqld stop   Edit /etc/my.cnf...

0

MySQL Tips

Show all users Drop all databases Delete all users in MySQL with specific name Check and duplicate user grants Reset root password (mysql 5.7)   Tip #1: Show all users MariaDB [(none)]> select User,Host from mysql.user order by User, Host; Output...