Another Error!

Fiodor94

New Member
Hey guys i got another error!

I dont knon why!

here is the error:

Attempting to attach to database

Code:
Error description: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) /home/vol2/byethost9.com/b9_3021455/htdocs/forum/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.

what can i do to Fix it?

Thx
 
make sure all your sql database stuff is correct and that you haven't edited anything else besides the stuff that vB told you to (it's in the read me)
 
you must enter your database name and database user name as user_mysqldb and user_mysqluser where user is your hosting account so if your ftp username is user125 and database was db and user is user it would be user125_db and user125_user. you get it?
 
You need to edit your config.php file.

Put your

Database Username
Database Password
Table Prefixes


This is easy, just open config.php in notepad, put word wrap on, and its very clearly annotated the file itself tells you what to do.
 
It looks like you are hosting your forum on byethost, do not use "localhost" as your sql server name, they used to have "sql.someservername.*" <-example only, check on your cpanel on the left side there you can find the right address of your sql server.
 
Back
Top