Not really.. when you create a MySQL database on astahost, your database as well as your username are prefixed with you cPanel username.. i.e.
Say you cPanel login name is:
jipmanNow I will create a MySQL db named mydb. This db will actually get named as:
jipman_mydbFor my username - for this db, I choose, jippy.. This gets translated as:
jipman_jippyPassword stays whatever you set.
So when I access this db (which is jipman_mydb), I'll provide it the usename, jipman_jippy and my pass. You php script should use these
values accordingly to connect - a simply glocky@localhost wouldn't do.
Assuming that you cPanel username is glocky - try something like glocky_mydbusername@localhost to try access the db.
This is universal - i.e. for whoever has a hosting account here - your database and database-username will always get prefixed with your cpanel login name and an "-" (underscore) followed by the ACTUAL username you chose to connect to the db...
It's clearly stated in big bold black - when you use the cPanel MySQL DB manager to create a db and users... You can't miss it. Infact, immediately after creating your db/user you'll see the results in this format too...
This - I'm talking from the domain name point of view - i.e. if you have ur own domain linked with your asta account. In case of subdomains, you might have to add the subdomain part after your name too - am not sure. Best way to find out is create a database through the MySQL Db manager in cPanel and see the results.
Reply