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

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 19th, 2003, 01:21 PM
kennyrogersjr kennyrogersjr is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 kennyrogersjr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry How do I remotely connect to a mysql database, tutorials aren't working for me.

I have been trying for the past week to find a way to remotely
connect to my mysql database. I have had no luck in the matter.

I need to know if phpmyadmin allows remote connectivity.

I would like to add that I am only 17 and have had only a couple
months of mysql 'experience'. I wouldn't call it experience either.

On the other hand, I have had more than 7 years of experience
with html and a year with cgi. I do know how to connect to a
database with a php page, too. I just can't figure this out. It is
quite aggravating.


- Kenny Rogers Jr.

Reply With Quote
  #2  
Old October 19th, 2003, 05:59 PM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6
mysql -u user1 -h 111.22.33.44 dbname -p


where -u specifies to connect as user1, -h specifies the hostname of the MySQL database as 111.22.33.44 (replace this with the IP address of you VirtualServer account) and the -p at the end signifies that the user has a password. You will be prompted for the password after pressing return.

Reply With Quote
  #3  
Old October 19th, 2003, 06:29 PM
kennyrogersjr kennyrogersjr is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 kennyrogersjr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I don't have a VirtualServer account. (what is one?)

You forgot to mention, that I would also need to download mysql onto my computer. Luckily, I forsaw this event, and I downloaded it a couple of hours ago.

But, unfortunately, I am still having no luck accessing my mysql database.

If somebody has time, please make a step-by-step process for me, and anyone else that is also having this problem.

- Kenny Rogers Jr.

Reply With Quote
  #4  
Old October 19th, 2003, 06:39 PM
kennyrogersjr kennyrogersjr is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 kennyrogersjr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
A couple of minutes after that last post, I found that I get this error:

ERROR 1130: Host '###.###.###.###' is not allowed to
connect to this MySQL server

(the ### sign's are what I replaced with my IP address
It is my Actual IP Address for my computer.

I put "mysql -u jnp-krogersjr -h www.kennyrogersjr.com -p"
I tried to put the db name in but it wouldn't work; so I left it out.

- Kenny Rogers Jr.

Reply With Quote
  #5  
Old October 19th, 2003, 08:02 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
kenny,

Don't let it get to you. I know this can be a frustrating matter.
Here are a few steps I suggest you take in solving this problem.

1. Where is your Mysql Database Hosted?
a. Your ISP/Web Host?
b. A remote machine that you administer?

Answering the above question will help you figure out who to contact in regard to the following question.

2. Do you have remote access to the MySql Server and/or the particular database you are trying to access.

If not, you need to make sure you have a record in the mysql user and/or db table for your username which has a host entry of '%'.


As a side note, please understand that PhpMyAdmin is a client/server application that normally resides on the
same machine as the mysql server and thus has permission to access the mysql server locally... so just because
you can connect remotely to phpmyadmin does not mean you have access to remotely access the mysql server directly.

I hope this makes sense and I hope you solve your problem
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #6  
Old October 19th, 2003, 08:04 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Also, I forgot to mention that I normally use the following command to connect to a mysql server:

mysql -u <username> -p<password> -D <dbname>

Yes, that is -p<password> with no space between the -p and the <password>

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > How do I remotely connect to a mysql database, tutorials aren't working for me.


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