where to write commands in cpanel using php and mysql?

Mittul Chuahan

New member
hello .. m stuck in php and mysql - phpmyadmin .. connecting database to CPANEL ..

well .. as soon as i try to connect to database m getting this error ..

-----------------------------------
Access denied for user 'ageingva_12345'@'localhost' to database 'ageingva_parth'
-----------------------------------

this is my php script .. in which m trying to connect to database which i have uploaded in my CPANEL - PHPMYADMIN

-----------------------------------------------------------
try.php
----------------------
<?php
mysql_connect("Localhost","myusername","mypassword") or die(mysql_error());
mysql_select_db("mydatabasename") or die(mysql_error());
?>
-----------------------------------------------------------

i m sure here that i have used the correct username , passwords and database name and host name here ..
but nothing seems to be working and getting the same error ..


i went to this forum ..

http://forums.cpanel.net/f354/1044-access-denied-user-ash7723-localhost-database-ashley_db-187702.html

there the user named "LinuxTechie" saying about to write COMMANDS ..

but i just dont know how to and where to write these commands in my CPANEL . .

please any knowledgeable person is there .. please help me . .

m stuck .. help me please
 
Back
Top