Help true php MASTERS

Started on the old forum in June 2011 · view the original in the archive · old links redirect here

8 replies · 519 views · started 15 years ago · 1 min read

6 participants
Shayaan Junior · 10 posts #1

I have a problem while installing. when i add details in my cofig.php file e.g

$dbhost='localhost'; $dbuser='xxx_xxx'; $dbpass='xxxxx4'; $dbname='xxx_xxx';

When i fill all details as given above. Then also it shows could nt con db check http://shayaan.my3gb.com

i think i am filling the details in wrong order plese give me the correct order eg. Xxx_database

woody Developer · 176 posts #2

$databasehost="localhost"; $databaseuser=""; $databasepass=""; $databasename=""; mysql_connect($databasehost, $databaseuser, $databasepass) or die("Could not connect to the database"); mysql_select_db($databasename);

check your spelling, check you don't have the dbname and dbuser mixed up and check that it is actually localhost a few hosts i've seen dont use it

Shayaan Junior · 10 posts #3

Nothing Happened Bro 🙁 help me

sangoldline Junior · 26 posts #5

remove htaccess data on your script like yourdomain.com/.htacess

"Every New Day is Another Chance to Change Your Life"

brys182 Newbie · 9 posts #6

check your dbuser and dbname, it should be yourmy3gblogin_yourdbuser and yourmy3gblogin_yourdbname

1-2-3 runnnnnn......

Shayaan Junior · 10 posts #7

Ya it's like that [login name_dbusr] but nothing happen 🙁

firemax Developer · 221 posts #8

if your using cPanel, make sure the mysql user has permissions to access to the selected database. you can check this under the cPanel 'Current Databases' in MySQL Databases page. if user has not permissions, you must add permissions using 'Add User To Database' options.

if permissions are ok, you have some wrong username/pass or database name details.

External image (may be gone) Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader PHP Tutorials: [How to Secure Your PHP Script (PHP SECURITY)](http://coding-talk.com/f14/how-to-secure-you…

Shayaan Junior · 10 posts #9

No i am n't using cp nothing happening help me who are using my3gb hosting

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close