Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
What is up with the user name and pass in my config.php file? Details »»
What is up with the user name and pass in my config.php file?
Version: , by EVO VIII Chris EVO VIII Chris is offline
Developer Last Online: Feb 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-27-2003 Last Update: Never Installs: 0
 
No support by the author.

Ok to make this short and sweet I have VBulleting working great on my website at www.vorspann.net however I am just curious because a few things are wierd in my config.php file...

It asked for my username and password when installing and I tried entering my username which was Chris Jumonville and my password which was ********** but it wouldnt install. I went with the default settings which were exactly as follows...

// username and password to log onto db server
$dbusername="root";
$dbpassword="";

Umm ok that is basically saying that I dont have a name or password?

Well I installed it and it worked just like that without any problems. I know that those ARE NOT my MySQL password and username for a fact. It will also ONLY work with my server name as "localhost". My only guess for this would be that since I run my own server which is a DNS server, web server and everything and I dont use any hosting services that it uses localhost as the server name since it is my local computer and that it uses the root for name and nothing for the password because this is all hosted on my own computer which I am installing vBulletin on. I imagine the only time the user name and password would be relavant and a server name as well would be if you were using a hosting service? Is this right or is something wierd just going on? All things said however vBulletin works 100% great.

Can anyone explain this to me?

Thanks
Chris

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-27-2003, 11:51 PM
SmEdD's Avatar
SmEdD SmEdD is offline
 
Join Date: Mar 2003
Location: Ontario, Canada
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I'm trying to figure this out. You are asking why you need a user name and password when it's your own server?
Reply With Quote
  #3  
Old 08-27-2003, 11:55 PM
EVO VIII Chris EVO VIII Chris is offline
 
Join Date: Aug 2003
Location: Portland, OR
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes I am new to PHP, mysql and vBulletin so that is infact what I am asking.
Reply With Quote
  #4  
Old 08-28-2003, 01:30 AM
SmEdD's Avatar
SmEdD SmEdD is offline
 
Join Date: Mar 2003
Location: Ontario, Canada
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you didn't have a user name and pass I could connect to your DB. localhost just means that the DB is on the same computer.

So I definatly suggest puuting a user name and pass due to securitey reasons.
Reply With Quote
  #5  
Old 08-28-2003, 01:39 AM
EVO VIII Chris EVO VIII Chris is offline
 
Join Date: Aug 2003
Location: Portland, OR
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do have a user name and password for my MySQL DB but what I am saying is that vBulletin config.php file under the admin directory says that the user name is "root" and the password is "" which is nothing. However my user name for MySQL is Chris Jumonville and the password is **********. So how is vBulletin accessing my DB and working just fine when it doesnt have a user name and password? Get what Im saying? Everything works here I am just trying to understand how this works.

Chris
Reply With Quote
  #6  
Old 08-28-2003, 08:25 PM
SmEdD's Avatar
SmEdD SmEdD is offline
 
Join Date: Mar 2003
Location: Ontario, Canada
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm has to be something on your end. I'm not to sure what it could be . . .
Reply With Quote
  #7  
Old 08-28-2003, 09:05 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If that is definatly what you have in config.php then it means the root MySQL account has no password on your server, hence the reason it works. I strongly suggest making sure the root account has a complex password and that you use an ordinary account for vB.
Reply With Quote
  #8  
Old 08-28-2003, 11:51 PM
EVO VIII Chris EVO VIII Chris is offline
 
Join Date: Aug 2003
Location: Portland, OR
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But how can it say that when this is what my MySQL my.ini file says....

#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions

[mysqld]
basedir=C:/mysql
#bind-address=67.164.107.65
datadir=C:/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe
user=Chris Jumonville
password=**********

I blocked the password out for security reasons when posting this obviously.

Chris
Reply With Quote
  #9  
Old 08-29-2003, 12:20 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You typically create users via a MySQL client, IIRC, as well as creating permissions. Naturally you need to connect as root to do that the first time. Try playing with mysqladmin. When I set up MySQL on Windows, I didn't have to touch any of its config files for it to work, so there is likely a simpler solution.
Reply With Quote
  #10  
Old 08-29-2003, 02:31 AM
EVO VIII Chris EVO VIII Chris is offline
 
Join Date: Aug 2003
Location: Portland, OR
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe Im dumb but what is IIRC? Also my MySQL database works just fine its just wierd that I have created user name as chris Jumonville and a password in the my.ini file USING mySQLAdmin and yet my vBulletin database will not connect at all when I use Chris Jumonville as the user name and ******** as the password. It works when I user root as the name and "" as the pass. Its just really weird.

Chris
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 09:25 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.04228 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete