PDA

View Full Version : installing vBulletin - do not have permission to connect



jl8890
Thu 4th Dec '08, 2:02am
this is the message i've been receiving on the third step of installing vBulletin onto my site:


Step 2) Connect to the database

Attempting to attach to database

Error description: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) /home/content/j/e/f/jeffu/html/forums/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.

---------------------------------------------------------------------------------

is there something i'm entering wrong? this is what i entered in the config.php file. i am hosting the website with godaddy.com


// ****** MASTER DATABASE SERVER NAME AND PORT ******
// This is the hostname or IP address and port of the database server.
// If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'denimtalk';
$config['MasterServer']['password'] = 'my pw';



-------------------------------------------------------------------------------


thanks in advance!

Hayk
Thu 4th Dec '08, 2:22am
Hello. Have you entered correct db name in your config file?

jl8890
Thu 4th Dec '08, 6:50am
Hello. Have you entered correct db name in your config file?


thanks for the help! it's fixed now

Yadkin
Thu 4th Dec '08, 6:23pm
Hello. Have you entered correct db name in your config file?
What is the correct name?

beishe8
Thu 4th Dec '08, 7:01pm
What is the correct name?
You are the only one who knows that.

Creating database needs:
name
username
password

Yadkin
Thu 4th Dec '08, 7:53pm
You are the only one who knows that.

Creating database needs:
name
username
password

I've entered in the name of the subdirectory. Is it the domain name?

Yadkin
Thu 4th Dec '08, 8:07pm
I've created a new database, same name as dbname, doesn't work. I also have the ame username and password in both,

Yadkin
Thu 4th Dec '08, 8:55pm
Here's my error message:

Step 2) Connect to the database
Attempting to attach to database
Error description: mysql_connect() [function.mysql-connect (http://www.amendmentix.com/install/function.mysql-connect)]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) /hermes/bosweb/web077/b777/sl.[username]/public_html/[dbname]/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's the "sl." before the username?

copiertalk
Thu 4th Dec '08, 8:59pm
on some servers your database will have a prefix. it is usually a few lettters of your domain.

example :
your domain is example.com
your database is mydatabase
your database name is : example_mydatabase

Yadkin
Thu 4th Dec '08, 9:28pm
on some servers your database will have a prefix. it is usually a few lettters of your domain.

example :
your domain is example.com
your database is mydatabase
your database name is : example_mydatabase

I changed the config file again, dbase name to "example_mydatabase", refreshed the installer; didn't work.

Tried username_mydatabase.

Tried username.startlogicmysql.com/mydatabase.

Tried username.startlogicmysql_mydatabase.

Each time the error message is exactly the same.

beishe8
Thu 4th Dec '08, 9:32pm
on some servers your database will have a prefix. it is usually a few lettters of your domain.

example :
your domain is example.com
your database is mydatabase
your database name is : example_mydatabase

or the username,like with my host.

Is your username Yadkin?
Yadkin_mydatabase

Provided you have cPanel, click on MySQL Databases.
It'll list your databases.

Yadkin
Thu 4th Dec '08, 9:47pm
or the username,like with my host.

Is your username Yadkin?
Yadkin_mydatabase

Provided you have cPanel, click on MySQL Databases.
It'll list your databases.

Use comma instead of underscore? I tried "/", no go.

My host is startlogic. Username is same as they gave me when I signed up months ago. This is a second domain, same account, filed under subdirectory just like they told me.

I removed all databases and added a new one. dbname same as in config.php file.

Yadkin
Thu 4th Dec '08, 9:53pm
I just noticed I have Vbulleitin 3.7. Does it matter? Install script 3.7.4. Moved my question to here: http://www.vbulletin.com/forum/showpost.php?p=1660386&postcount=1

copiertalk
Thu 4th Dec '08, 10:16pm
you have to use all the files from the same verson of vbulletin.

My names were just an example. they are not what you should use.

Call your server company and have them give you the name and password for your database. That is what they do. Call them and see if they can get you connected to your database.

Yadkin
Thu 4th Dec '08, 10:17pm
you have to use all the files from the same verson of vbulletin.

My names were just an example. they are not what you should use.

Call your server company and have them give you the name and password for your database. That is what they do. Call them and see if they can get you connected to your database.

Please see http://www.vbulletin.com/forum/showpost.php?p=1660386&postcount=1

copiertalk
Thu 4th Dec '08, 10:28pm
I understand that.

That does not repair the issue with connecting to your database. You hosting support can look and tell you the exact values you need to enter in those fields. The members here can guess for two days and may not get it right but your server admin can tell you in a couple of minutes.

Yadkin
Thu 4th Dec '08, 10:44pm
I understand that.

That does not repair the issue with connecting to your database. You hosting support can look and tell you the exact values you need to enter in those fields. The members here can guess for two days and may not get it right but your server admin can tell you in a couple of minutes. My first call to them they gave me "its not our application" deal. I'll call them a second time and see if they can do that.

Yadkin
Thu 4th Dec '08, 11:07pm
Problem solved on second call. More knowledgeable tech this time. http://www.vbulletin.com/forum/showpost.php?p=1660415&postcount=5

copiertalk
Thu 4th Dec '08, 11:16pm
glad to hear. good job. have fun with your vbulletin. That is what it is all about.

Yadkin
Fri 5th Dec '08, 9:53am
THnx!

Dannykilla
Sat 6th Dec '08, 2:49pm
I keep getting this error on step 3:


Fatal error: Could not open /home/XXXXX/public_html/forums/includes/xml/bitfield_vbulletin.xml in /home/XXXXX/public_html/forums/includes/class_bitfield_builder.php on line 130

Anyone help me out, I can't figure what I am doing wrong?

Thanks
Danny

Jinovich
Sat 6th Dec '08, 4:10pm
reupload "bitfield_vbulletin.xml" to public_html/forums/includes/xml/

Ensure you have uploaded all files from the "upload" directory.

Dannykilla
Sat 6th Dec '08, 4:43pm
thanks for the reply Jinovich, my problem was that for some reason FileZilla wasn't uploading the xml Folder??