Config Settings...

MobilesDhoom

New Member
Hi...
I have get free hosting.
And Now When I am Installing Forum Then At Step 3 I am Getting This Error

Code:
Attempting to attach to database

Error description: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) /www/users/k/n/i/*********/includes/class_core.php on line 311

The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the 'includes/config.php' file.

Plzz Tell Me How Can I Fix This Or DO The Correct Settings Of Congif...

Here Are My Database Settings For Example : These Are Not Correct

Your MySQL Database settings:
DB Host: fdb-1-32.example.net
DB Name: username_db1
DB Username: username.vbteam.info
DB Password: password.vbteam.info

Now Plzz Tell Me For Example Where I Put These On Config.php

Thankx
 
No, when you create the database user, make sure that username has full permissions to the database. Has nothing to do with file or folder permissions.
 
Username should be probably be:
username_vbteam.info
not:
username.vbteam.info

and password dosen't normally have a break
password.vbteam.info

so should probably be:

password

not

password.vbteam.info
 
Yes Hoxxy...I Have Done As U Said That But Problem Is Still Having...And I Have Already Write That The MySQl Setting Are Not Correct...
And I Have Given These _ And vbteam.info FOr Example
Hope Any One Can Help Me
 
Like Grinderhand said, it's probably a permissions issue. Go into your mysql control panel, and give your user all access to the database you're trying to install to.
 
Again, database user permissions have NOTHING to do with file and folder permissions. Did you seen a screen that looks like this when you created your database user? This is the permissions that should have been set. If you access your database user in cPanel, do the permissions match what is seen in the picture? If not, change the permissions so the user has all permissions as shown.
 
I think your problem may be that your config.php is probably still specifying localhost for the server address. This line in your config.sys should look like this:

Code:
$config['MasterServer']['servername'] = 'fdb-1-32.cwahi.net';

If it doesn't look like above, make it look like that and see if that helps.
 
Back
Top