[solved] Remote connection to database

I am unable to connect to the database remotely. I tried everyway available on the internet.

mysql -uroot -perpnext gives me access denied. And I do not have enough privilege to create a user. :frowning:

I am replying myself
When you do mysql -uroot -perpnext

the password is your root mysql password then it allows you to take root action.