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 September 12th, 2000, 05:48 PM
coryLeslie coryLeslie is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Riverside, CA 92507
Posts: 2 coryLeslie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Do I enter the following sequence -
mysql> -uuserid -ppassword
in the MySQL Monitor? If I am supposed to, then I'm having problems. I can't gain access to begin playing with the database. Also, I have a filemaker pro database. How do I go about importing this into MySQL? Do I set up tables first in MySQL? Help me, please! I'm a novice completely willing to learn. Also, keep in mind (if this has any bearing on your advice), I'm working on a Power mac.

Reply With Quote
  #2  
Old September 12th, 2000, 11:25 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 12 m 27 sec
Reputation Power: 56
mysql -u username -h hostname -ppassword

This gets you into the mysql> monitor with the access rights you need. Then you can perform your SQL commands.

Now the explanation:

-u username is separated by a space
-h hostname is sometimes necessary depending on how your user access rights are setup. Usually it defaults to 'localhost', in which case you don't need to use it, but if another hostname is required by your MySQL user profile, you need to specify it.
-ppassword is not separated by a space. You can just use -p, and you will be prompted for a password. The reason for the -ppassword thing is if you want to automate a MySQL action from a shell script or Perl. The reason there is not a space is because after sending the user access info, you can also specify a database, and call a text file that runs SQL commands on that database.

For example:

mysql -u username -h hostname -p databasename < textfile.sql

would prompt you for a password, then run the contents of the textfile as a series of commands on 'databasename'

mysql -u username -h hostname -ppassword databasename < textfile.sql

would do the same, but without prompting for the password.

It doesn't matter what kind of computer you are using to access your ISP, as long as you have a decent Telnet client.

[This message has been edited by rycamor (edited September 12, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > How do I access MySQL from my ISP?


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 2 hosted by Hostway
Stay green...Green IT