PDA

View Full Version : database error



sb225
Thu 26th Jul '07, 6:46am
I had installed vb on two servers well on one server is working which is php 4but on servage hosting it is not working and the php is 5while installing i am getting error
Error description: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) /mounted-storage/home61b/sub009/sc38517-CPFX/hyd.nu/vb/includes/class_core.php on line 274The 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.I have contacted them they given replies to the databse is empty.but whihc i installed as sample and it is workingcan you tell me what was the problem

Wayne Luke
Thu 26th Jul '07, 1:18pm
1. One or more of the following is wrong in your config.php file:
$config['MasterServer']['servername'] (except in rare cases, this should almost always be left as 'localhost' or '127.0.0.1')
$config['MasterServer']['username']
$config['MasterServer']['password']
$config['Database']['dbname']

If you are unsure of what the appropriate values are then you will need to ask your web host.

2. Or that this db user is not assigned to that database or does not have permission to access MySQL to create or access a database. You may need to first manually create the database and assign the db user to it. Since each web host is different, if you do not know how to do this then contactyour web host for help.