First I created a dir to hold my database data
Then used symbolic links
ln -s /var/www/db_test/ /var/lib/mysql/
When I entered
/var/lib/mysql/, I saw db_test dir with shortcut icon with all my exist databases. But I cannot connect to
db_test in php script, even when I tried to chmod and restart apache and mysql server.