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 > BioSQL install - MySQL error (mac)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-04-09, 21:43
Stephen McGowan Stephen McGowan is offline
Registered User
 
Join Date: Jul 2009
Posts: 1
BioSQL install - MySQL error (mac)

Hi,

I'm trying to load a schema for biosql.

I have created a database called "biosql" in MySQL, but i'm trying to load the biosql-schema/sql in MySQL with the command:

>mysql -u root biosql < biosqldb-mysql.sql

The "biosqldb-mysql.sql file is currently located on my mac in:
/Users/stevey_mac2k2/Desktop/ExerciseTwo/biosql-1.0.1/sql

My MySQL is currently saved in:
usr/local/mysql-5.1.35-osx10.5-x86/bin


I have created a .profile for my mysql commands with the script:

export PATH=/usr/local/mysql-5.1.35-osx10.5-x86/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:$PATH

i try the command:

bash-3.2# mysql -u root biosql < biosqldb-mysql.sql
bash: mysql: command not found

Any help would be greatly appreciated.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 07-04-09, 22:31
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
you can't run the command at the sql prompt, you do need to run it from your shell.

specify the full path to mysql from bash and see if that works.
Reply With Quote
  #3 (permalink)  
Old 07-08-09, 18:38
ALG4 ALG4 is offline
Registered User
 
Join Date: Jun 2009
Posts: 6
Quote:
bash: mysql: command not found
This means that mysql isn't even being found. It's not in the PATH.

Do the setting and exporting of the PATH on separate lines.


_________________________________
Embedded database systems | raima.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