Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2005, 06:39 PM
pyro.699 pyro.699 is offline
 
Join Date: Sep 2005
Location: Fredericton, New Brunswic
Posts: 261
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database connecting

hello, i have just for the thrd ****ing time made a new forum.... (as you can tel, im not to good at this /; ) im inputting my information into the config.php correctly, ive done it many times... and im still unable to connect...

can i have one of the mods gime a hand?
Reply With Quote
  #2  
Old 10-04-2005, 07:30 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did you create the database in cpanel?

Well assuming you have cpanel login and click "MySQL Databases" link.
On the next page you see field for the database name

In this field type vbforum (it can be anything though)
Click "Add Db" and when you come to the next screen click the "Go Back" link

Look for

UserName: user123
Password: pass123
(of course you can change the username and password to anything you like.)
Now click the "Add User" button then click the "go back" link

You should see two drop down boxes with a dozen checkboxes (pictured below)


Note: you may have a prefix before the database name and username


Our database name is "prefix_vbforum" and our username is "prefix_user123"
On the left drop down menu select "prefix_user123" and on the right select "prefix_vbforum"
Now just click the button named "Add User to Db" and that's it.

Now in the config.php file
$dbusername = 'prefix_user123';
$dbpassword = 'pass123';
$dbname = 'prefix_vbforum';
Reply With Quote
  #3  
Old 10-04-2005, 07:55 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pyro:

What MySQL version, what operating system. Database on the same host as vB?
Reply With Quote
  #4  
Old 10-04-2005, 09:46 PM
pyro.699 pyro.699 is offline
 
Join Date: Sep 2005
Location: Fredericton, New Brunswic
Posts: 261
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol ^^

umm, yeah, i mentioned ive done this a ton of times, i think i rembered to make the mysql database... lol

mysql = 4.0.24_Debian-10-log
Operating system = Debian GNU/Linux
and duh ^^
Reply With Quote
  #5  
Old 10-04-2005, 10:44 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the specific error you're getting? root is the easiest account to test but suicidal to use as the final version (or even testing versions). You can always ask your host to create the database and a user for it which any competent host should be able to do.
Reply With Quote
  #6  
Old 10-04-2005, 10:54 PM
pyro.699 pyro.699 is offline
 
Join Date: Sep 2005
Location: Fredericton, New Brunswic
Posts: 261
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="red">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.</font>

im trying to, but there reallly stupid!
seriously... it took thema week to tell me that the domain i wanted.. was already taken /;
Reply With Quote
  #7  
Old 10-05-2005, 06:18 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hostname should be set to localhost and the rest of the info should match.

If you want that i have a look, you can pm me the details.
Reply With Quote
  #8  
Old 10-05-2005, 08:20 PM
pyro.699 pyro.699 is offline
 
Join Date: Sep 2005
Location: Fredericton, New Brunswic
Posts: 261
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ive tryed both localhost and my serevs host name

marco, i know you said no once, but after you help me, oyu can block me.. i just need a bit of help ^^ i can give you any information you need

(by this i mean, can i add you 2 my im list 4 a while, i wont tell a soul)
Reply With Quote
  #9  
Old 10-06-2005, 03:25 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pm me you msn handle again.
Reply With Quote
  #10  
Old 10-06-2005, 06:13 PM
pyro.699 pyro.699 is offline
 
Join Date: Sep 2005
Location: Fredericton, New Brunswic
Posts: 261
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thankyou, marco ^^
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:42 AM.


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.04147 seconds
  • Memory Usage 2,241KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete