How to show subcategories using loop?

I am giving solution of my own problem 🙂

<?php 
$descendant= array('child_of'=>54);
$categories = get_categories($descendant);
foreach($categories as $category) :
    echo $category->name;
endforeach;
?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)