If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Stored procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-04, 10:41
williambms williambms is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
Post Stored procedure

How can I run stored procedure in Mysql 5.0 ?
The reference manal says that I have to run the script fix_privilege_tables.sql . But the file is missing.
Reply With Quote
  #2 (permalink)  
Old 02-04-04, 16:05
KevinH KevinH is offline
Registered User
 
Join Date: Feb 2004
Location: Canada
Posts: 4
The script is actually called "mysql_fix_privilege_tables.sql", ...if that helps. And it's located in the "scripts" folder of the mysql installation. I've installed MySQL 5.x on a WinXP machine. Accepting the default installation parameters, the scripted files were placed in a directory called c:\mysql\scripts.

If you're having trouble on a MS-Windows installation, you might want to check the PATH variable and consider any previous installations of MySQL that you might have on the machine. That could be interfering. I had mySQL 4.0.x installed(which installs to c:\mysql-4.0.x) and had some trouble on my system because when I tried to run the "fix" script, Windows kept looking through the 4.0.x installation directories.

Hope this helps...
Reply With Quote
  #3 (permalink)  
Old 02-05-04, 05:36
williambms williambms is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
Talking where it?Is It?

OK, but I cant find de script .

I have the follow scripts in directory c:\mysql\scripts:

fix_privilege_tables (no extension) and
fix_privilege_tables.sh --> It's same.

#!/bin/sh
# This script is a wrapper to pipe the mysql_fix_privilege_tables.sql
# through the mysql client program to the mysqld server

# Default values (Can be changed in my.cnf)
password=""
host="localhost"
user="root"
sql_only=0
basedir=""
verbose=0
args=""

file=mysql_fix_privilege_tables.sql

# The following code is almost identical to the code in mysql_install_db.sh
...
...
... continue...


thatīs it? I canīt run it. It is not SQL syntax.
I think that the script have a:
" create table proc (colum 1 type,....)"

thanks for the atention!

BARBABELA

excuse for the english errors. I'm Brazilian
Reply With Quote
  #4 (permalink)  
Old 02-05-04, 10:31
KevinH KevinH is offline
Registered User
 
Join Date: Feb 2004
Location: Canada
Posts: 4
You're on the right track. I see, in my installation, the two scripts that you do(of course, they're actually named "mysql_fix_privilege..."). But I've also got the "mysql_fix_privilege_tables.sql" file, that you seem to be missing.

Either your copy of MySQL was flawed and didn't come with the script, or the script was accidentally deleted/renamed/moved on your PC. I'd suggest reinstalling mysql(probably uninstall current copy first). If that doesn't work then, if it's possible, download a fresh copy of mySQL and reinstall. Maybe choose a different mirror to download from?

Your English is fine...and it's certainly better than my Portuguese!
Reply With Quote
  #5 (permalink)  
Old 03-02-04, 00:22
joydip_kanjilal joydip_kanjilal is offline
Registered User
 
Join Date: Feb 2004
Posts: 21
Re: Stored procedure

Quote:
Originally posted by williambms
How can I run stored procedure in Mysql 5.0 ?
The reference manal says that I have to run the script fix_privilege_tables.sql . But the file is missing.

Where did u get My SQL 5.0 download. Please mail me
at joydip_kanjilal@rediffmail.com


Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On