Pls help me connect my database sql and script

Status
Not open for further replies.

west10155

New Member
Messages
3
Reaction score
0
Points
0
Admins can you help me with my config.php i cant c0nnect my database to my script what do i have to input on the following? <?php
$dbname = "westmack_puge"; //change to your mysql database name
$dbhost = "localhost"; //database host name
$dbuser = "westmack_west";
$dbpass = "tremoved";


my cpanel username:westmack , database:westmack_puge , database user:westmack_west . n0w what will input there? thanks
 
Last edited by a moderator:

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Did you link the user and the database with all permissions?
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
You go to inside the cPanel and on mySql bases scroll down and you can link.
 

west10155

New Member
Messages
3
Reaction score
0
Points
0
sir drek,I set all the previleges already. still 500 internal Server error. and why is it that in mySql The database size it has 0.0 Mb . but in php admin it has 94 files.
 
Last edited:

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
500 internal server errors usually mean one of two things:
1) Your files or folders are group/world writable: To fix this go into your cPanel file manager or FTP and make sure that all files are set to 644 (or 600) and all directories are set to 755 (or 700).
2) If you are using .htaccess RewriteRules, make sure that you have a RewriteBase set.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
and why is it that in mySql The database size it has 0.0 Mb . but in php admin it has 94 files.

A bug in the system. It seems to do that to everyone. Going to PHPMyAdmin seems to be the most accurate way to see if your tables/data is there.
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Hello,

As we have not received any replies i am marking this ticket as resolved. If you have any further issues please re-open this ticket or create a new one.
 
Status
Not open for further replies.
Top