vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Error Messages (https://vborg.vbsupport.ru/showthread.php?t=282609)

RealtorDC 05-08-2012 11:09 AM

Error Messages
 
I just uploaded the files to my website and went to install/install.php and entered my customer # and got this error message:

Quote:

Startup Errors
Due to the following errors, the install/upgrade can not continue:

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
Error description: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) /home/content/c/a/f/cafauver/html/mywashingtondcrealtor/forum/includes/class_core.php on line 317
Install system is 4.1.12

Any help? I believe I edited config file correctly but possibly where did I go wrong?

kh99 05-08-2012 11:18 AM

Is this the first time you're setting it up on this server? Recheck the $config['MasterServer']['servername'] (and port, username, password) in your includes/config.php file, and if it still doesn't work you'll probably need to contact your host to make sure the settings are correct.

RealtorDC 05-08-2012 12:09 PM

Well...

It is referencing line 317 which is

Quote:

function db_connect($servername, $port, $username, $password, $usepconnect, $configfile = '', $charset = '')
{
if (function_exists('catch_db_error'))
{
set_error_handler('catch_db_error');
}

// catch_db_error will handle exiting, no infinite loop here
do
{
$link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", $username, $password);
}
while ($link == false AND $this->reporterror);

restore_error_handler();

if (!empty($charset))
{
if (function_exists('mysql_set_charset'))
{
mysql_set_charset($charset);
}
else
{
$this->sql = "SET NAMES $charset";
$this->execute_query(true, $link);
}
}

return $link;
}

kh99 05-08-2012 12:26 PM

OK, I'm not sure what you're saying. That line is the one that connects to the database server, so if it's failing it means you're passing it the wrong values (and those values come from the config.php file), or else the server isn't running. The message seems to say it's a permission problem, but it also says it can't connect to the socket which I think would mean that it's not a problem with the mysql user/password or permissions.

ForceHSS 05-08-2012 12:50 PM

check username or password this is the problem as it is wrong

kh99 05-08-2012 01:01 PM

Quote:

Originally Posted by ForceHSS (Post 2327316)
check username or password this is the problem as it is wrong

I don't think so. When you run install.php with an incorrect username or password the error message says "(1044) Access denied for user ''@'server' to database 'xxxxxxxx'". I think the error message above is saying that it couldn't connect to the server at all.

ForceHSS 05-08-2012 02:22 PM

I still say it is the username or password have seen this error before and this is what the problem was
Yes there is a chance it could be something on the host side blocking it

kh99 05-08-2012 02:37 PM

I suppose it's possible that the error you get from an incorrect user/password depends on some server configuration.

In any case the solution's the same - recheck the values in config.php and then contact the host.

RealtorDC 05-09-2012 12:43 PM

Yes it was b/c 'localhost' was not acceptable as the Master Server.. had to login to phpMyAdmin and find it was something obscure.. GoDaddy.com hosting.. blah..

ForceHSS 05-09-2012 03:37 PM

if i knew it was godaddy I could of told you right away what the problem was


All times are GMT. The time now is 11:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01099 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete