Post: vBulletin install error
04-29-2011, 12:49 AM #1
Post Count
▄ █ ▄ █ ▄ █ ▄ █ ▄
(adsbygoogle = window.adsbygoogle || []).push({}); I do not consider this a question, mods feel free to move it if you think it is.

I am installing vBulletin using 0fees.net and when I go to install, I get to step to then I get:

    Attempting to attach to database

Error description: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) /home/vol13/0fees.net/fees0_7746606/theelitegamers.0fees.net/htdocs/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.


I have no idea what to change in config.php or class_core.php on line 311, I know its line 311 because of Notepad++ (I really recommended it). So, what can I change in config.php or class_core.php on line 311 to make this work? Oh and this is what line 311 is:
    $link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", $username, $password);


Thanks, EvilCow

---------- Post added at 08:49 PM ---------- Previous post was at 07:36 PM ----------

ANYONE??? :cry:
Last edited by Post Count ; 04-28-2011 at 11:43 PM.
05-01-2011, 03:01 PM #11
Post Count
▄ █ ▄ █ ▄ █ ▄ █ ▄
Originally posted by St0rM View Post
Your information is incorrect for your ftp logins, try to type them in again x], its happened to me before.


Originally posted by Biz View Post
You have incorrectly inserted database info, please try again and look for the errors. If you are using 000webhost, make sure to use the right "host" not "localhost".


Originally posted by Biz View Post
Tell me how it went :y:!


This is what I changed on line 311:
    $link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$ftp.0fees.net:$80", $fees0_7746606, $MYPASSWORD);


I still get that error:
[ATTACH=CONFIG]9005[/ATTACH]
05-01-2011, 04:45 PM #12
Biz
I’m too L33T
You mustn't change that. You have to change includes/config.php

The following user thanked Biz for this useful post:

Post Count
05-01-2011, 05:05 PM #13
Post Count
▄ █ ▄ █ ▄ █ ▄ █ ▄
Originally posted by Biz View Post
You mustn't change that. You have to change includes/config.php


Ohhh... good thing I have a backup. What part do I change in config.php? Because the error said in class_core.php on line 311.
05-01-2011, 05:05 PM #14
Biz
I’m too L33T
You need to change, database, password, user ect.
05-01-2011, 05:14 PM #15
Post Count
▄ █ ▄ █ ▄ █ ▄ █ ▄
Originally posted by Biz View Post
You need to change, database, password, user ect.

My MySQL doesn't have a password should I just put my FTP login?

And where it says
        //    ****** SLAVE DATABASE CONFIGURATION ******
// If you have multiple database backends, this is the information for your slave
// server. If you are not 100% sure you need to fill in this information,
// do not change any of the values here.
$config['SlaveServer']['servername'] = '';
$config['SlaveServer']['port'] = 3306;
$config['SlaveServer']['username'] = '';
$config['SlaveServer']['password'] = '';
$config['SlaveServer']['usepconnect'] = 0;
do i need to change anything? sorry for not being a grammar Nazi right now im in a hurry. also im sorry about all the questions
Last edited by Post Count ; 05-01-2011 at 05:19 PM.
05-01-2011, 05:26 PM #16
Biz
I’m too L33T
Originally posted by EvilCow View Post
My MySQL doesn't have a password should I just put my FTP login?

And where it says
        //    ****** SLAVE DATABASE CONFIGURATION ******
// If you have multiple database backends, this is the information for your slave
// server. If you are not 100% sure you need to fill in this information,
// do not change any of the values here.
$config['SlaveServer']['servername'] = '';
$config['SlaveServer']['port'] = 3306;
$config['SlaveServer']['username'] = '';
$config['SlaveServer']['password'] = '';
$config['SlaveServer']['usepconnect'] = 0;
do i need to change anything? sorry for not being a grammar Nazi right now im in a hurry. also im sorry about all the questions


No, you`re MYSQL MUST have a password otherwise theres nothing really `right`.
05-01-2011, 05:45 PM #17
Post Count
▄ █ ▄ █ ▄ █ ▄ █ ▄
Originally posted by Biz View Post
No, you`re MYSQL MUST have a password otherwise theres nothing really `right`.


Ill check and reply back with a quote

Originally posted by Biz View Post
No, you`re MYSQL MUST have a password otherwise theres nothing really `right`.


Ohhh shit man I forgot about the email they sent me your right

Originally posted by Biz View Post
No, you`re MYSQL MUST have a password otherwise theres nothing really `right`.


Turns out its the same as my ftp log in and it still doesn't work but as i said above what do i change in
    
// ****** SLAVE DATABASE CONFIGURATION ****** // If you have multiple database backends, this is the information for your slave // server. If you are not 100% sure you need to fill in this information, // do not change any of the values here. $config['SlaveServer']['servername'] = ''; $config['SlaveServer']['port'] = 3306; $config['SlaveServer']['username'] = ''; $config['SlaveServer']['password'] = ''; $config['SlaveServer']['usepconnect'] = 0;
05-01-2011, 06:36 PM #18
St0rM
Treasure hunter
Originally posted by EvilCow View Post
Ill check and reply back with a quote

[/code]


You need to create a account with your SQL database, make sure the password isn't easy for the account for the SQL or it could easily be brute forced :P.

The following user thanked St0rM for this useful post:

Post Count
05-01-2011, 06:38 PM #19
Post Count
▄ █ ▄ █ ▄ █ ▄ █ ▄
Originally posted by St0rM View Post
You need to create a account with your SQL database, make sure the password isn't easy for the account for the SQL or it could easily be brute forced :P.


I got what you mean but in which tab? [ATTACH=CONFIG]9007[/ATTACH]

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo