Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 01:31
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)
| | |-+  populating database
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: populating database  (Read 2152 times)
Johann Montfort
Server what's that
*
Posts: 35



View Profile WWW Email
« on: 05/07/02, 15:53 »

Dear all,
  I am trying to learn MySql and I am in my first steps.  I have installed the mysql server and everything seems to be working fine.  Now I am following a tutorial, and this has created a file called DB.sql, and then this tutorial tells you to populate a database with this file.

When I am typing

C:type DB.sql | mysql -h localhost -u root myDB

in the MSDOS, it is not working.  What am I doing wrong?

Sorry if I did not explain myself well, but I have started MySql today and I am not so sure what is exactly happening, that is why I posted a message in this message board

Thanks for your help!

Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #1 on: 05/08/02, 03:32 »

exactly what is happening then?

Musicman
Logged
Johann Montfort
Server what's that
*
Posts: 35



View Profile WWW Email
« Reply #2 on: 05/08/02, 15:02 »

It is giving me the following error:-

'mysql' is not recognasable as an internal or external command, operable program or batch file.

Another thing, how do I create and ODBC Connection to my database?
Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #3 on: 05/10/02, 03:10 »

Hi,

If there is a mysql program with your kit, probably the dos box does not know where it is. Change the PATH setting (in autoexec.bat if you are running a 9x system, or somewhere in the control panel for NT/2000) to include the folder where your mysql programs are

Musicman
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #4 on: 05/11/02, 21:18 »

Ok, try this:

Open the MS Dos prompt then use the CD command to traverse to the directory where the MySQL.exe program is located.

Default is C:\MySQL\Bin

So you could use

CD C:\MySQL\Bin

once your their then you can run your command by typing :

mySQL [enter]

Which will spit out some lines of text saying that your connected to the DB.  
Then you'll see a prompt like:

MySQL>

Enter any commands you want to execute their.

Also try out that new article:
http://www.flash-db.com/ApachePHPSQL

it goes into some details further along like page 7 or 8.
Logged

-Jeff.
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