Can't connect mysql db under my domain

149 Views Asked by At

I host my domain on hostmonster.com, I created a new mysql user named admin@localhost and database test, its working fine in my local, but when I immigrate into my domain, some error happened: Access denied for user 'admin'@'host165.hostmonster.com'. I think because I don't have this 'admin'@'host165.hostmonster.com' user, I want to know how to create such user by CPanel or shell cmd

1

There are 1 best solutions below

0
On

Here is a link from hostmoster on how to create database and user. Please follow the link. The hostname "localhost" should be right. HostMonster Create Database User