Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 02:30
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  MySQL, PostgreSQL, MS SQL, Access (Moderators: Flash-db, Musicman, Ronald Wernecke, Jorge Solis, Andries Seutens)
| | |-+  mysql newbie needs help
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: mysql newbie needs help  (Read 1625 times)
Adam
Server what's that
*
Posts: 34



View Profile Email
« on: 05/28/04, 11:46 »

Hi,

I'm teaching myself mysql and I'm doing ok but I've run into a problem I can't seem to figure out. To experiment with running batch files I created a small file that contains...

show databases;

and named the file 'showdb.txt'. When I issue this command from the command prompt:

mysql>source showdb.txt;

I get this error...

ERROR:
Failed to open file 'showdb.txt', error: 2

At first I thought it was simply a path issue so I tried putting showdb.txt in various folders. I put it in: bin, data\nameofdatabase, mysql, but none of that worked. Does anyone know what I'm doing wrong?

Thanks,
Adam




Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 05/28/04, 12:18 »

Hi Adam,
welcome to the boards.

Under which os are you using this?
Are you root, or admin user?
Are you logged on to the database?
Logged

happy flashing
Cool
Ronald
Adam
Server what's that
*
Posts: 34



View Profile Email
« Reply #2 on: 05/28/04, 14:40 »

Hi Ronald,

In response:

>>>Under which os are you using this?
I am running this under windows 2000 professional. I have MYSQL installed on my system in the c:\mysql folder.

>>>Are you root, or admin user?
I have logged in as root and I have created a password for root. I have exited and logged back in several times without a problem.

>>>Are you logged on to the database?
I have typed in "show databases;" and I see both mysql and test databases. I typed 'use test;' to enter the test database. I have created tables successfully using the create command and I have dropped tables as well. From command line, all queries seem to work fine.

Thanks,
Adam
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything