Advertisement
Guest User

Untitled

a guest
Sep 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. value2=$(awk '$1=="root"{print $3}' /root/mysql.root.pw)
  2. mysql --table --user=root --password=$value2 mag2_data << eof
  3. select magic, resource_magic.magic_id, count(*) as cnt
  4. from sample_resources
  5. inner join resource_magic on sample_resources.magic_id = resource_magic.magic_id
  6. group by resource_magic.magic_id
  7. order by cnt desc;
  8. eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement