vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick Database Stats (https://vborg.vbsupport.ru/showthread.php?t=51828)

gmarik 04-20-2003 07:57 AM

Nice, nice, nice!

assassingod 04-20-2003 09:46 AM

Quote:

Today at 06:34 AM Boofo said this in Post #11
When I hard-coded my username and password in, this is the error I got:

Warning: mysql_query(): 5 is not a valid MySQL-Link resource in /home/bear/public_html/forum/admin/db_mysql.php on line 86

If I don't hardcode it, it get the line

(Using ERROR! MB of space)

Did you check the comments on lines 5 and 7?

alkatraz 04-20-2003 07:46 PM

I get this error
Quote:

arning: mysql_query(): 1 is not a valid MySQL-Link resource in /home/alkatraz/www/board/admin/db_mysql.php on line 93
even after changing all the user/pass/server vars in script.

No worries, I removed the hack anyways. But good idea!

assassingod 04-20-2003 08:04 PM

Not too sure why you got that error:confused:
Oh well:(

N9ne 04-20-2003 09:04 PM

Maybe it only works on certain OS's?

assassingod 04-20-2003 09:07 PM

Maybe - Some say it work some say it dont.

Weird

Kriek 04-21-2003 02:31 AM

PHP Code:

$db mysql_connect($db_host$db_usr$db_pwd) or die (mysql_error());
mysql_select_db($tdb$db) or die (mysql_error()); 

mysql_error() will give a more specific error to work with; definitely a life saver for me. Hope this helps.

Boofo 04-21-2003 02:34 AM

Quote:

Today at 04:46 AM assassingod said this in Post #13
Did you check the comments on lines 5 and 7?
Yes, I did. When I do it that way, I get some strange db error about a lastpost or something and all of the text on the page suddenly goes to smallfont. Wierd.

Kriek 04-21-2003 03:16 AM

Quote:

Today at 03:46 PM alkatraz said this in Post #14
not a valid MySQL-Link resource
$tdb MUST equal your database name.

I'm willing to bet that mysql_error() will return "No database selected" ;)

Sanjiyan 04-21-2003 05:42 AM

Installed just fine, but how do I shorted the MB feedback?

At the moment it looks like this:

Database Stats borg (Using 1.0523281097412 MB of space)

How do I get it to go to: 1.23 MB


All times are GMT. The time now is 01: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.01110 seconds
  • Memory Usage 1,739KB
  • 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)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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