vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Cant Upload VB at a New Server>> (https://vborg.vbsupport.ru/showthread.php?t=151929)

Khalid-B 07-10-2007 11:21 PM

Cant Upload VB at a New Server>>
 
Hello,

I just changed my hosting and trying to run VB at new server but cant .
I have uploaded all files in FTP and also changed config.php with my corect data but getting error .
Here is error that i am getting at step 2,


Step 2) Connect to the database

Attempting to attach to database

Error description: mysql_connect() [function.mysql-connect]: Access denied for user 'xyz'@'localhost' (using password: NO) /home/xyz/public_html/forum/includes/class_core.php on line 274

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.

dont understand even entered my corect data in configphph file

Need help please.......
Thanks

calorie 07-10-2007 11:35 PM

If you think you have everything set correctly in the vB config.php file, shoot your host an email to confirm the values and database access.

Khalid-B 07-10-2007 11:48 PM

first of all thanks for your reply.

yes i asked them they told every thing ok from there end , and i am sure i have entered my correct data in config.php.

please help guys .

calorie 07-11-2007 12:04 AM

If everything is correct from their end, then it seems there is an incorrect entry in the config file. Nobody can tell you what to place in the config file except perhaps your host, so double check with them that you have the correct values.

Dismounted 07-11-2007 05:35 AM

Judging from the error, you don't seem to have anything written in for your MySQL password.

Khalid-B 07-11-2007 08:58 AM

yes i entered .
DB name
DB username,
DB user password ,
i entered correctly but getting same error evevn i made another DB account and tried but same error .
Please guys help i am still stuck at same point.
Really dont understand.
Please helppppp
Thanks

Dismounted 07-11-2007 09:54 AM

Well it seems you haven't. Re-download the vBulletin package and replace your config.php with a fresh one, then edit it as necessary.

Khalid-B 07-11-2007 10:04 AM

i redownloaded it and than entered my new data in config.php but not working . same error.

thanks

Dismounted 07-11-2007 11:21 AM

You're still entering it wrong, are you sure you've entered between the quotes and not overwritten the array key name?

Khalid-B 07-11-2007 12:18 PM

yes i am sure i entered correct data in config.php.
Thanks

dyna88 07-11-2007 12:26 PM

Is a prefix added to your Data base name and user name and if so are you adding it in your config file???

eg... prefix_databasename prefix_databaseusername

Khalid-B 07-11-2007 12:46 PM

here it is ....

Quote:

// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
// This must be created by your webhost.
$config['Database']['DB_Name'] = 'forum';

// ****** TABLE PREFIX ******
// Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = '';

// ****** TECHNICAL EMAIL ADDRESS ******
// If any database errors occur, they will be emailed to the address specified here.
// Leave this blank to not send any emails when there is a database error.
$config['Database']['myemail@xyz.com'] = 'dbmaster@example.com';

// ****** FORCE EMPTY SQL MODE ******
// New versions of MySQL (4.1+) have introduced some behaviors that are
// incompatible with vBulletin. Setting this value to "true" disables those
// behaviors. You only need to modify this value if vBulletin recommends it.
$config['Database']['force_sql_mode'] = false;



// ****** 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']['DB_username'] = 'root';
$config['MasterServer']['DB password'] = '';

toolmanwill 07-11-2007 12:54 PM

you must have a password then if it not letting you connect, in your config you have no password, unless its easyphp i'm sure you have a password for mysql

Khalid-B 07-12-2007 03:11 AM

guys , help please........................

Dismounted 07-12-2007 04:36 AM

I knew it. You're overwriting the array key name. You're doing this:
PHP Code:

$config['MasterServer']['DB password'] = ''

You need to do this instead:
PHP Code:

$config['MasterServer']['password'] = 'DB Password'

This needs to be corrected for every option. I suggest you get a fresh config.php and enter your details correctly.

dyna88 07-12-2007 10:47 AM

He also did it with the username.............

PHP Code:

$config['MasterServer']['DB_username'] = 'root'

should be

PHP Code:

$config['MasterServer']['username'] = 'DB_username'


Dismounted 07-12-2007 10:48 AM

I know, I pointed that out if you didn't read the end of my post :).

dyna88 07-12-2007 10:50 AM

It just registered.... I am a little slow in the morning...LOL


All times are GMT. The time now is 11:33 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.01239 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete