vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Database connecting (https://vborg.vbsupport.ru/showthread.php?t=97550)

pyro.699 10-04-2005 06:39 PM

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?

harmor19 10-04-2005 07:30 PM

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
https://vborg.vbsupport.ru/
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
https://vborg.vbsupport.ru/
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)
https://vborg.vbsupport.ru/

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';

Marco van Herwaarden 10-04-2005 07:55 PM

Pyro:

What MySQL version, what operating system. Database on the same host as vB?

pyro.699 10-04-2005 09:46 PM

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 ^^

filburt1 10-04-2005 10:44 PM

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.

pyro.699 10-04-2005 10:54 PM

<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 /;

Marco van Herwaarden 10-05-2005 06:18 PM

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.

pyro.699 10-05-2005 08:20 PM

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)

Marco van Herwaarden 10-06-2005 03:25 AM

pm me you msn handle again.

pyro.699 10-06-2005 06:13 PM

thankyou, marco ^^


All times are GMT. The time now is 03:50 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.01017 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete