Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Cant Create Sp On MySql


i've downloaded the latest version of mysql earlier and i cant create sp on mysql. here is the simple syntax i have. btw, its the same 1 i cut and paste from the mysql documentation.

CREATE PROCEDURE simpleproc (OUT param1 INT)
BEGIN
SELECT COUNT(*) INTO param1 FROM t;
END


and the return error i get would be "you have and error in your sql syntax check mysql manual bla bla bal"




View Complete Forum Thread with Replies

Related Forum Messages:
If I Create An Index With Multiple Fields Do I Still Need To Create Individual Ones?
I have a table where the name field can only contain duplicates when the user_id field is different, so I create an index with user_id,name. Now I was wondering if I want to search just for the user_id or the name field individually does this dual field index count, or should I create another index for the user_id and the name?

View Replies !
How To Create Index When Doing 'create Table As Select'
Code:
Create mysqlorary table mysql
AS SELECT
Name
FROM
EmployeeList
WHERE
Dept = 'XXX'

I would l ike to create an index on the field Name of the mysqlorary table mysql. I wonder if I can create the index on the fly by adding sth in the above statement.

View Replies !
How To Create Different Namespaces When Using CREATE VIEW?
I'm doing a triple join between tables which have similarly named fields...I was hoping that when using CREATE VIEW, the result would be a table with fields such as a.field, b.field, c.field...but I get an error "Duplicate column name 'field'"

...How can I get around this besides changing the name of the duplicate field in each table?

View Replies !
Create Another Field After Create Table
i have create a table from CLI, i would like to add another field after create table.
How to do that ?

View Replies !
Mysql Database Create
All i want to do is create a page with a response form, e.g. name etc
and some radio buttons (part of a uni project, but i'm a chemist!) and
a submit button to save the data in a database.

I installed iss microsoft web server and php and the mysql database.
Php works fine, i could write to a text file, and using phpinfo(); it
says everythings ok and a mysql section is there, so i'm guessing
mysql is installed ok.

The php script to insert info etc in to databases seems easy enough,
but i have no idea how to create a database!

I searched everywhere, but could find nothing, most mysql tutorials
just brush past it and go onto the editing of a databse, but i have no
database!

View Replies !
Create PROCEDURE MySql 5.x
Is CREATE PROCEDURE avaiable in 4.03 or should i waut to 5.x and any rumors about when the new MySql 5.x ic comming.

View Replies !
Can Not Create A Table (mysql 5.0.22)
I am using mysql 5.0.22 and I can not create a table. I end up getting a 1064 error. I can insert, delete, and update within the tables just fine.

I looked at the user permissions and I have assigned all priviledges to the user. I am using MySQL Administrator and MySQL Query Browser and I get the same problem in both. I even tried doing it manually within the Query Browser but its the same error.

I have just recently upgraded mysql from 4 to 5 and was wondering if there was a setting I needed to change so I can create tables.

View Replies !
How Do You Create A GUI For The MySQL Database
I just started using My Sql, have been able to transfer over my database from Access, but how do I create the same functionality I had in MS Access ; being able to take in user input, store it into the database, and then re-display it in a specific manner... The data comes in from Excel and a SQL server; there are also user names and passwords for all the users which I think I can just create in SQL Administrator I believe.

s is the most efficient, and relatively easy way to design this functionality in a user-friendly environment.

View Replies !
How To Create A View Using Mysql 4.1?
how to create a view using mysql 4.1?

View Replies !
Create A Mysql Database
Can someone tell me how to create a MySQL database.

View Replies !
Create Database Outside From The MySql?
It is possible for me to create database outside from the MySql root folder?

View Replies !
Create Views In MySQL
Can I create views in MYSQL. Or is there an alternate technique.

View Replies !
How To Create A Sequence In MySQL
I am not able to create a sequence in MYSQL 5.0
Want help on creating the same.

Basically, what I am looking for is, that I should get a number greater that the last one on every call to this sequence.

In Oracle, one can simply write something like:-
CREATE SEQUENCE seq_ordermaster
increment by 1 start with 1
maxvalue 999999minvalue 1
nocache
Nocycle;
And while calling, one can use it by selecting seq_ordermaster.nextval from DUAL

Considering the fact that there is no DUAL table in MySQL, how can One write such a sequence and also, how one can get the next value on each select statement?

View Replies !
RedHat 9.0 MySQL, PHP CREATE
I have a RedHat 9.0 web server setup for intranet use. When the webmaster tries to use his CREATE DATABASE and CREATE TABLE scripts it tells him that he doesn't have the permission to do it. I've given all the necessary permissions to do it, I think. Any suggestions?

View Replies !
Mysql Can't Create Tables
I am trying to create tables in Mysql version 3.23.58
this is what I typed in the terminal:

mysql> create table MyVChanels(
-> Alerts varchar(50),
-> TypeID int not null primary key,
->
-> index(TypeID),
->
-> )type=innodb;
ERROR 1064: You have an error in your SQL syntax near ')type=innodb' at line 3

No matter what kind tables i am creating I get the same error with or
without primary key. To make it simple i even tried to create a table with one field but no help the same error pops up.
However, created tables in Window XP Mysql and works perfectly.

So I guess if there is some kind of configuration that I need to do?

View Replies !
How To Create Fulltext Indexes In MySQL 3.23.58?
Retracing my problem leads me to believe I never successfully created fulltext indexes for MySQL 3.23.58 MyISAM tables. I went to the MySQL manual and was able - or so I thought - to create them, however, my fulltext search queries fail in 3.23.58 but the exact queries (with same data) work perfectly in 4.0.10.

View Replies !
Cannot Create Mysql-test/var/run/master.pid
ERROR: /tmp/edearl/mysql-4.0.21/mysql-test/var/run/master.pid was not
created in 30 seconds; Aborting

This error occurred just after MySQL was installed by root on Linux
2.4.22 (Fedora).

View Replies !
Create Stored Proc Mysql 5.0
I try to create a stored proc using the mysql query tool.

But it complains about syntax. I've tried to see what help and other samples
could return but they do not write about how it really must be done..

this is syntactically a right proc body

create procedure doit
(@p int)
AS
BEGIN

SELECT * FROM TEST2 WHERE id = @p ;

END

View Replies !
MySQL 5.0.1 : CREATE VIEW And UNION
I don't manage to create a view from the UNION of two tables.

This statement works all right :
CREATE OR REPLACE VIEW myview AS SELECT 1 AS mycol UNION ALL SELECT mycol FROM mytable2;

This one does not :
CREATE OR REPLACE VIEW myview AS SELECT mycol FROM mytable1 UNION ALL SELECT mycol FROM mytable2;

and I get the error "ERROR 1143 (42000): create view command denied to user 'root'@'localhost' for column 'mycol' in table 'myview'", although I am creating the view using the "root" account.

Version used : MySQL 5.0.1 alpha snapshot (Windows binary).

View Replies !
Create Database Mysql Cluster
I have setup a mysql cluster on our web servers, all is working really well. Except I cant figure out how to create a database that scales across the cluster. Can someone point me in the right direction on how to do this.

Here is the output from ndb_mgm:

ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 3 node(s)
id=2 @192.168.10.3 (Version: 5.0.27, Nodegroup: 0)
id=3 @192.168.10.4 (Version: 5.0.27, Nodegroup: 0)
id=4 @192.168.10.5 (Version: 5.0.27, Nodegroup: 0, Master)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.10.2 (Version: 5.0.27)

[mysqld(API)] 3 node(s)
id=5 @192.168.10.3 (Version: 5.0.27)
id=6 @192.168.10.4 (Version: 5.0.27)
id=7 @192.168.10.5 (Version: 5.0.27)

View Replies !
MySQL Be Used To Create A List Server
I'm a total newbie and don't know anything about databases. I'm interested in creating a mailing list and am wondering if mySQL database can be used as a list server so I don't have to outsource a mailing list provider.

View Replies !
MySQL: Create New Database, No Privileges
I am not sure why, but when I log into PhpMyAdmin I get a No Privileges message for creating new databases in MySQL - 4.1.11-standard.

How can I turn the permission back on?



View Replies !
Unable To Create Database In Mysql
I use Macos 10.4.7
When I write "CREATE DATABASE books"
I get this message:
ERROR 1044 (42000): Access denied for user :'@4localhost' to database 'books'
Why can't I create database?

View Replies !
Create Users In MySQL Programmatically
I'm looking for a way to create a new user for a MySQL database. This should be done most preferrable w ADO. Is it possible? Perhaps even to append an user to an existing user group within the database?

View Replies !
Can't Create The System/user MySQL Tables
I have mysql installed via rpm package, but when I check the data
dirs, the only table there is "test". The instructions say there
should be others, like users tables, and other such tables.

I stopped the server and ran mysql_install_db which is the command to
create these, I get the following excerpt:

linux:/usr/bin # mysql_install_db --user=mysql
Installing all prepared tables
050304 6:10:00 [Warning] Asked for 196608 thread stack, but got
126976
Fill help tables
050304 6:10:00 [Warning] Asked for 196608 thread stack, but got
126976
.....

But when I check, it doesn't seem to make these tables, only the test
table.

Is this normal? I thought the user table contains the login info, so
if there isn't one, how can I log in?

View Replies !
Installed MySQL On WinServer2003, Can't Create Databases
It installed as a service, and seemed to start just fine, but on the 'databases' tab of the WinMySQLAdmin ver 1.4, I can't create databases. It shows 'test' but no tables. Right clicking gives me a menu with 4 flush choices

Contents of C:Windowsmy.ini follows:

#This File was made using the WinMySQLAdmin 1.4 Tool
#8/5/2004 12:48:19 PM

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

[mysqld]
basedir=C:/mysql
#bind-address=192.168.1.100
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=dfs
password=dfs

View Replies !
Create My Own VB Backup Program For A Remote MySQL DB
I understand that the basic principles to create a TCP/IP backup program for

a remote MySQL DB are:

a) Query/retrieve the schema.

b) Query/retrieve each table and create inserts for each row of data.

The way I want to do it is even more basic, as I know what my schema is so I

only need to reterieve and create the insert rows to put into my backup text

file, which is basically a large DDL.

The problems that I am experiencing are I want to keep the schema in an

external text file so that I'm not storing it in the actual app and I

thought I would also have another external file to store each 'select * from

tablex' query.

Is this a good way of doing it?

How would I merge the results together to make a new (and 3rd) external text

file backup?

View Replies !
Cannot Create Windows Service For MySQL. Error: 0
I installed MySQL 5 (free version) and at the end, it could'nt start the service, and I got the message:

Cannot create Windows service for MySQL. Error: 0

View Replies !
Create Odbc Connect From Mysql To Oracle
can someone provide step by step instructions on how to set up a odbc connection from mysql to oracle and have records in a table transferred from a mysql table to an oracle table. Mysql and Oracle are on Solaris OS.

View Replies !
How Can I Create Event Or Some Scheduler Script In MySQL 4.1.22?
I need to create a scheduler script that runs ones a day and insert few strings to table.
i know that it's possible in newer versions of MySQL but unfotunately I don't know how to do it in MySQL 4.1.22

View Replies !
Cannot Create Windows Service For MySql.Error:0
I am trying to Configure mysql,but when I click "Execute" I see red X at Start Service with message "Cannot Create windows service for MySql.Error:0"

View Replies !
How To Create Triggers From Mysql Query Browsers
i am using mysql5.0 on linux.when i am creating triggers in mysqlquery browser. got the error. my trigger code: ...

View Replies !
CREATE TABLE With DEFAULT CHARSET In MySQL < 4.1
Ok, I've read the whole chapter 10 of the reference manual and now I know, that only MySQL Version up from 4.1 support the

CREATE TABLE tbl (cols) DEFAULT CHARACTER SET foo COLLATE bar

statement. But is it possible to create tables with special charactersets (at least UTF8) with a MySQL version prior to 4.1?

View Replies !
CREATE TABLE And MySQL Query Browser
I am using the ODBC 3.51 Driver to Do a "create database" and then create some tables on that database.

I see in the ..mysqldata directory my new database I have created and the associated .frm files, however MySQL Query Browser and Administrator do not see these schema's.

I am guessing it may be due to user privileges. MySQL is running locally and the connection string does not contain a Username and password.

Also, when I do show databases from within the Query Browser, it does not show my Database, only the one that I had created manually.

There must be some more setup that I am not aware of to register the Database or something.

View Replies !
Problem Create New Mysql User W/ Php Code
trying to create new mysql user w/ php code as below, but always got error message "Error, insert query failed". Please, point out what I did wrong and how to fix it.


<?php
$connect = mysql_pconnect('localhost', $AdminName, $AdminPass)
or die('Error, login db failed');
mysql_select_db(mysql) or die('Error, open db failed');

$query = "INSERT INTO user(Host, User, Password)
VALUES('localhost', '$UserName', '$UserPass')";
mysql_query($query) or die('Error, insert query failed');
$query = "FLUSH PRIVILEGES";
mysql_query($query) or die('Error, flush query failed');
?>


And even tried it w/ this code
[
$query = "INSERT INTO user
(Host, User, Password, Select_priv, Insert_priv, Update_priv)
VALUES ('localhost', $UserName, PASSWORD($UserPass), 'Y', 'Y', 'Y')";


Already searched but not successful, so if this problem was posted here, please post the link here.

View Replies !
Can I Create Temp Variable In Mysql Query?
I have a mysql query like this: SELECT SUM(num1), SUM(num2), SUM(num1)/SUM(num2) FROM mytable

I want to reuse the value from SUM() by assigning to a temp variable, so I don't need to redo it again later.

View Replies !
A Beginners Attempt To Create Portoflio In MySQL
I'm trying to learn Joins in MySQL by practising creating portfolio in my database.
So far I figured out a simple join of a table called "projects" and table called "clients"
Can you suggest me of a good resource or tutorials for how to architecture the future tables of my portfolio, for example table "technologies", "categories" etc.

View Replies !
Unable To Create Innodb Tables In Mysql
i am unable to create tables in mysql under InnoDB engine, whatever i do, it simply creates table under default MyISAM engine, why is it so ??

I tried making the table thru commandline, using the following command, which is exact copy from mysql official website

MySQL Code:
CREATE TABLE customers (a INT, b CHAR (20), INDEX (a)) ENGINE=INNODB;

then, tried creating thru mysql query browser, but no luck ..

i am unable to run transactions using php due to this reason,

View Replies !
How Do I Create A Database On Linux Machine Running Mysql?
I have an sql script file that is supposed to create
a set of database tables for me. Supposedly I type
the following on my linux box and its all supposed
to work...

mysql (ENTER)
. mysql_dump.sql.txt

When I type myslq <ENTER> I get a command prompt
that looks like this...

mysql>

But I don't know how to change directories from that
command prompt to the directory where mysql_dump.sql.txt
is located. Can someone tell me how to change dirs at
the mysql> prompt?

View Replies !
Problem To Create Database Source From Openoffice With Mysql
i can link openoffice with mysql, but fail to edit it, add entry. The
problem may be from the permissions.

View Replies !
Create MySQL Select Query From The A Field Using SUBTRING_INDEX
Is it possible to create a MySQL query to do the following.

Extract from TABLE.field, which is defined as text, containing either NULL, number (e.g. 54) or range of numbers (e.g. 70-95).

Then use the extracted number within a WHERE clause


I have looked into using something like SELECT SUBSTRING_INDEX(table.field, '-', 1);

Problem is I don't know how to use this within the WHERE clause.

View Replies !
Most Efficient Way To Create Drop Down Boxes With Item Count Using MySQL
[Back Type: All]
[Hardback (100)]
[softback (400)]

and

[Genre: All]
[Biography (94)]
[Crime (244)]
[Horror (14)]
[Romance (148)]

View Replies !
Lost Connection To MySQL Server During Query (create Database)
I downloaded the MySQL trail version a few month ago, it worked fine. however after i brought 1 x EMS MySQL Manager Professional (Non-commercial license) and registered but the tool doesn't work anymore... when i try to register a database and try to get it connect, it through me a error message "Lost connection to MySQL server during query". more to it... when i try to create a database at my local host, a error messate says "can't connect to MySQL server on localhost (10061)... PLease help!


View Replies !
MySql OUTFILE, ERROR 1 (HY000): Can't Create/write To File
I have problems in exporting tables to a file in MySql using OUTFILE option. MySql machine is a remote one. I got the error

ERROR 1 (HY000): Can't create/write to file '/tmp/scshekaran/bcp_table.txt' (Err 2)

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved