Could not connect: Access denied for user shout1@localhost (using password:YES) 'Error PHP / MySQL -
i have script set on site static shoutbox page people leave comments etc.
everthing /was/ working fine. have set constants in shoutbox.php file such;
define("host", "localhost"); define("user", "shout1"); define("password", "xxxxxxxx"); define("db", "shout1");
my database called shout1 , user name assigned same. have created table on database called shoutbox has 4 entries of id (int), date, user (varchar) & message (varchar) believe fine.
when go domain in question http://p4blo.it/shoutbox error mentioned in title advising access denied @localhost shout1
any ideas? have double , triple checked, deleted db , tables, recreated etc.
edit: forgot mention, user shout1 has been assigned access full privileges database shout1
looks host runs cpanel. in cpanel have carefull user , database names, since prefixed cpanel-username. eg. if cpanel-username "p4blo" database called "p4blo_shout1" , username "p4blo_shout1".
Comments
Post a Comment