I NEED HELP ON "SOURCE(/.) MYSQL
I NEED HELP ON "SOURCE(/.) MYSQL
am 02.02.2010 00:38:08 von kebede teferi
--0-1764004999-1265067488=:22126
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi, I'm very new to this and I need help.
What I want to do is to execute a source command statement from cmd to crea=
te tables and populate them on a data base that I created in Mysql.=A0 Here=
is what I did at CMD:
*I changed the directory from c:\> to mysql
*At mysql prompt i used -u root -p that prompted me to give my password.
*I put in my password and I was allowed to access the mysql server.
*I used the 'the use --database' command and I can see the database I creat=
ed is active and waiting to be worked on.
*then to run the script which is on a note pad with the name create and fil=
e type: sql I typed the following at the mysql prompt:
*source create.sql;
=A0 I get the error message '2' and '22' whichever way I tried the source c=
ommand.=A0 I appreciate your help
Kebede Teferi
=0A
--0-1764004999-1265067488=:22126--
Re: I NEED HELP ON "SOURCE(/.) MYSQL
am 02.02.2010 01:24:10 von Jesper Wisborg Krogh
How did you type the source command? Did you remember not to quote the file=
=20
name? E.g.
mysql> SOURCE schema.sql
is the correct way.
Jesper
On Tue, 2 Feb 2010 10:38:08 kebede teferi wrote:
> Hi, I'm very new to this and I need help.
>
> What I want to do is to execute a source command statement from cmd to
> create tables and populate them on a data base that I created in Mysql.=
Â
> Here is what I did at CMD: *I changed the directory from c:\> to mysql
> *At mysql prompt i used -u root -p that prompted me to give my password.
> *I put in my password and I was allowed to access the mysql server.
> *I used the 'the use --database' command and I can see the database I
> created is active and waiting to be worked on. *then to run the script
> which is on a note pad with the name create and file type: sql I typed the
> following at the mysql prompt: *source create.sql;
> Â I get the error message '2' and '22' whichever way I tried the sou=
rce
> command. I appreciate your help
>
> Kebede Teferi
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg
Re: I NEED HELP ON "SOURCE(/.) MYSQL
am 02.02.2010 01:32:35 von John Hicks
On 02/01/2010 06:38 PM, kebede teferi wrote:
> Hi, I'm very new to this and I need help.
>
> What I want to do is to execute a source command statement from cmd to create tables and populate them on a data base that I created in Mysql. Here is what I did at CMD:
> *I changed the directory from c:\> to mysql
> *At mysql prompt i used -u root -p that prompted me to give my password.
> *I put in my password and I was allowed to access the mysql server.
> *I used the 'the use --database' command and I can see the database I created is active and waiting to be worked on.
> *then to run the script which is on a note pad with the name create and file type: sql I typed the following at the mysql prompt:
> *source create.sql;
> I get the error message '2' and '22' whichever way I tried the source command. I appreciate your help
>
> Kebede Teferi
>
mysql looks in the current directory for the source file. That the
directory where you ran the mysql client from. The quickest fix is to
give the complete path to the file, e.g. source /home/me/mysourcefile.sql
(You say yoiu changed your current directory to mysql but didn't give us
the complete path. There are multiple mysql directories in most
configurations.)
--John
>
>
>
>
>
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org
Re: I NEED HELP ON "SOURCE(/.) MYSQL
am 02.02.2010 01:33:18 von Carlos Proal
Error 2 is "No such file or directory"
So, probably the file is not in the right path or you need to explicitly
provide the path to the file.
Carlos
On 2/1/2010 5:38 PM, kebede teferi wrote:
> Hi, I'm very new to this and I need help.
>
> What I want to do is to execute a source command statement from cmd to create tables and populate them on a data base that I created in Mysql. Here is what I did at CMD:
> *I changed the directory from c:\> to mysql
> *At mysql prompt i used -u root -p that prompted me to give my password.
> *I put in my password and I was allowed to access the mysql server.
> *I used the 'the use --database' command and I can see the database I created is active and waiting to be worked on.
> *then to run the script which is on a note pad with the name create and file type: sql I typed the following at the mysql prompt:
> *source create.sql;
> I get the error message '2' and '22' whichever way I tried the source command. I appreciate your help
>
> Kebede Teferi
>
>
>
>
>
>
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org
Re: I NEED HELP ON "SOURCE(/.) MYSQL
am 02.02.2010 03:03:21 von Colin Streicher
what everyone else said... also, is there a longer version of the error? or is it literally error 2
or error 22?
Colin
On February 1, 2010 06:38:08 pm kebede teferi wrote:
> Hi, I'm very new to this and I need help.
>
> What I want to do is to execute a source command statement from cmd to
> create tables and populate them on a data base that I created in Mysql.
> Here is what I did at CMD: *I changed the directory from c:\> to mysql
> *At mysql prompt i used -u root -p that prompted me to give my password.
> *I put in my password and I was allowed to access the mysql server.
> *I used the 'the use --database' command and I can see the database I
> created is active and waiting to be worked on. *then to run the script
> which is on a note pad with the name create and file type: sql I typed the
> following at the mysql prompt: *source create.sql;
> I get the error message '2' and '22' whichever way I tried the source
> command. I appreciate your help
>
> Kebede Teferi
>
--
Your love life will be happy and harmonious.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org
Re: I NEED HELP ON "SOURCE(/.) MYSQL
am 02.02.2010 03:26:30 von sureshkumarilu
R2l2ZSB0aGUgZnVsIHBhdGggb2YgZmlsZSBuYW1lIHdpdGggaW4gJycgYW5k IHRyeSBpdCBvdXQg
DQoNClRoYW5rcw0KU3VyZXNoIEt1bmENCk15U1FMIERCQQ0KLS0tLS0tT3Jp Z2luYWwgTWVzc2Fn
ZS0tLS0tLQ0KRnJvbTogQ29saW4gU3RyZWljaGVyDQpUbzogbXlzcWxAbGlz dHMubXlzcWwuY29t
DQpDYzoga2ViZWRlIHRlZmVyaQ0KUmVwbHlUbzogY29saW5Ab2J2aW91c2x5 bWFsaWNpb3VzLmNv
bQ0KU3ViamVjdDogUmU6IEkgTkVFRCBIRUxQIE9OICdTT1VSQ0UoXC4pIE1Z U1FMDQpTZW50OiBG
ZWIgMiwgMjAxMCA3OjMzIEFNDQoNCndoYXQgZXZlcnlvbmUgZWxzZSBzYWlk Li4uIGFsc28sIGlz
IHRoZXJlIGEgbG9uZ2VyIHZlcnNpb24gb2YgdGhlIGVycm9yPyBvciBpcyBp dCBsaXRlcmFsbHkg
ZXJyb3IgMiANC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