vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Basic MySQL syntax help please ... (https://vborg.vbsupport.ru/showthread.php?t=52641)

vfxtalk 05-06-2003 08:52 AM

Basic MySQL syntax help please ...
 
Hi All,

I am Extremely new to MySQL and would like to know the syntax to enter at the mysql> dos prompt on Windows machine to do the following:

- Create a user and password for a given database


Thats it :D

Also, how do i import a vBulletin db backup ??

Cheers for your time

Black Vivi 05-06-2003 03:05 PM

i dunno how to import vB bd backups, but for the dos command prompt, already conneted to mysql on it, type this:
Quote:

grant all privileges on database.table to user@server identified by "password" with grant option;
replace all italics with what you want them to be
for all tables/databases type * instead of the table or database

vfxtalk 05-07-2003 12:10 AM

hi black vivi,

thatnks for that, although i can get it to work...i think im one step ahead off myself.
This is the scenario....

i have an online forum that i have downloaded and backed up. I am trying to get the exact forum setup locally on my machine, as per the config.php settings found in forum/admin/config.php.

So i figure i need to create a local environment to accept the following, and then do i db import from the .sql backup ???:

PHP Code:

<?php
/////////////////////////////////////////////////////////////
// Please note that if you get any errors when connecting, //
// that you will need to email your host as we cannot tell //
// you what your specific values are supposed to be        //
/////////////////////////////////////////////////////////////

// type of database running
// (only mysql is supported at the moment)
$dbservertype="mysql";

// hostname or ip of server
$servername="localhost";

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

// name of database
$dbname="db_vbulletin";

// technical email address - any error messages will be emailed here
$technicalemail "me@localhost.com";

// use persistant connections to the database
// 0 = don't use
// 1 = use
$usepconnect 0;

// which users are allowed to view the admin log
// separate each userid with a comma
$canviewadminlog "1";

// which users are allowed to prune the admin log
// separate each userid with a comma
$canpruneadminlog "";

?>

Any further help would be very much appreciated.

Cheers

Paul

Black Vivi 05-07-2003 03:14 PM

yea, u do


All times are GMT. The time now is 12:50 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.01051 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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