MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 14th, 2000, 04:26 PM
yoshi yoshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 108 yoshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to yoshi
Hello.
I have a server running on an ISP. I am attempting to add mysql, for which I am using F-Secure SSH as the client program for the Macintosh. After I connect via SSH, I try to get into mysql. I am given the prompt:
[datera@host datera]$
Where I enter
mysql -u datera -p
This returns the error:
bash: mysql: command not found
If I enter
function mysql -u datera -p
The telenet returns:
bash: syntax error near unexpected token `-u'
If I enter
function mysql
I recieve this
>
And I get the same error as stated above.

Can someone tell me how to access mysql?? The username I use is datera. Thank you.

Reply With Quote
  #2  
Old March 15th, 2000, 02:20 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
Hi,

Following may work for you


mysql -h host -u username -p

then enter your password..




[This message has been edited by Shiju Rajan (edited March 15, 2000).]

Reply With Quote
  #3  
Old March 15th, 2000, 08:48 AM
Kyuzo Kyuzo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: Annapolis, Maryland US
Posts: 113 Kyuzo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Another possibility is that mysql is not in your $PATH. Type 'which mysql' at the command prompt to see if it is part of your $PATH. If not, you'll either have to update your login profile or use something like %/usr/local/bin/mysql -u root -p (or wherever mysql is located) at the command prompt to connect to the server...

Reply With Quote
  #4  
Old March 15th, 2000, 08:47 PM
yoshi yoshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 108 yoshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to yoshi
I'm sorry. I still cannot connect with BASH telenet. I tried 'which mysql', got this:

[datera@host datera]$ which mysql (then)
[datera@host datera]$

tried, and got:

[datera@host datera]$ mysql -h host -u username -p
bash: mysql: command not found

Should I use text, not "username" and "host"?
For example, if the username should be "datera" and the password "apass", should it be:

[datera@host datera]$ mysql -h host -u datera -p

Thank you. http://www.datera.com

Reply With Quote
  #5  
Old March 16th, 2000, 08:28 AM
Kyuzo Kyuzo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: Annapolis, Maryland US
Posts: 113 Kyuzo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
1. Find out where MySQL is on the server, for example /usr/local/bin/mysql

2. Once you have figured out where it is located, type the following at the command prompt:

/usr/local/bin/mysql -u username -p

(of course, substitute your username for 'username')

If everything is jiving, then mysql should prompt you for a password.

3. Somehow, someway change your $PATH to reflect the location of mysql, so all you will have to do is type mysql -u username -p at the command prompt to access the server

Reply With Quote
  #6  
Old March 24th, 2000, 12:09 PM
Erik Lindsley Erik Lindsley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 6 Erik Lindsley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Kyuzo:
3. Somehow, someway change your $PATH to reflect the location of mysql, so all you will have to do is type mysql -u username -p at the command prompt to access the server[/quote]

Depending in unix OS your ISP is running, you could try commands like "whereis mysql" and "locate mysql" (no quotes) to get a list of possible locations of the mysql binary (usually, th path will have "/bin/" in is somewhere...)

------------------
-Erik

Reply With Quote
  #7  
Old March 27th, 2000, 04:42 PM
underdog underdog is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: British Columbia
Posts: 11 underdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
don't forget that with the -u there is NO space between the u and the username. Also, if the ISP`s operating system is UNIX, it sometimes helps to put ./ in front of the mysql command to make sure that it's looking in the right place for the executable `mysql'

For username yoshi, it would be
./mysql -uyoshi etc

Reply With Quote
  #8  
Old April 14th, 2000, 08:02 AM
whiteg2 whiteg2 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 1 whiteg2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This sounds as though mysql in not installed.


------------------
http://www.theukmall.co.uk

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Connecting to mysql on telenet?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway