web hosting line
1.866.605.2484

Web hosting

Go Back   Web Hosting Forum - Web hosting discussion at SiteGround.com > Popular Software > Other Software and Applications

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2006, 01:05 PM
wikiot wikiot is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Default MySQL connection information

Hi,
I am trying to connect to mysql using MySQL Administrator (an awesome free program). Anyway, I am not entirely sure how to connect. What is my connection info?

I have found this post http://forum.siteground.com/showthread.php?t=1283

MySQL Host Address: my website
Username: my username
Password: my password
Port: 2082

But so far it hasn't worked. What am I supposed to do to log on/
Reply With Quote
  #2  
Old 06-21-2006, 01:11 PM
wikiot wikiot is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Default

ok, I don't know why I didn't add that to the bottom of the other post....anyway, I'm also wondering what access hosts mean in the mysql manager
Reply With Quote
  #3  
Old 06-21-2006, 01:16 PM
wikiot wikiot is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Default

ok, I've found some info about access hosts here (http://www.cpanel.net/docs/cpanel/)

I think I need to add my own personal computer's ip to the access hosts...so I did this, but I still cannot connect to the database with mysql admin
Reply With Quote
  #4  
Old 06-22-2006, 08:39 AM
kenny's Avatar
kenny kenny is offline
Senior Member
 
Join Date: Jun 2005
Posts: 134
Default

To be able to remotely access your MySQL databases, you have to allow access to the databases from your computer. To do so, visit whatismyip.com, and copy your IP address. Then, log in to cPanel, go to MySQL Databases and add your IP to the list of allowed hosts.

The details to use for connecting to the database are:

MySQL Username: [same as cPanel username]
MySQL Password: [same as cPanel password]
MySQL Host: yourdomain.com OR servername.com OR server.I.P.address (these can be found in the Manage Accounts section in your customer area on siteground.com)
__________________
Pick a different route.
Reply With Quote
  #5  
Old 06-22-2006, 10:56 AM
wikiot wikiot is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Default

what port should I use? When I open mySQL admin, there is a port box which has 3306 in it.
Reply With Quote
  #6  
Old 06-22-2006, 10:59 AM
wikiot wikiot is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Default

when I tried to connect with the default port, I got the following error:


Could not connect to the specfied instance

MySQL error Number 1045
Access denied for user 'myusername'@blk-22-127-126.eastlink.ca' (using password:YES)

If you want to chec the network connection, please click the Ping button.


But I am able to ping the server no problem.
Reply With Quote
  #7  
Old 06-23-2006, 08:39 AM
kenny's Avatar
kenny kenny is offline
Senior Member
 
Join Date: Jun 2005
Posts: 134
Default

In this case, you can try creating a MySQL user via cPanel -> MySQL databases, then grant privileges to the newly created user for the database you need to be able to access, and use it for connecting remotely. Make sure you have added the IP address of your computer to the list of allowed hosts, and mind the username -- it will have the form cpuser_dbuser: cpuser will be your cpanel username, dbuser is the MySQL username you used when creating it.
__________________
Pick a different route.
Reply With Quote
  #8  
Old 06-28-2006, 10:10 AM
wikiot wikiot is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Default

kenny,

Awesome. I really apppreciate your help. I tried with a new user and I was able to connect. So, I guess the problem was the user I was using before.

thanks again
Reply With Quote
  #9  
Old 06-29-2006, 03:00 AM
ducomagic ducomagic is offline
Junior Member
 
Join Date: Jun 2006
Posts: 3
Default Using MySQL Administrator to connect

Hi,

I'm having the problem mentioned here.

Could not connect to the specfied instance

MySQL error Number 1045
Access denied for user 'myusername'@CPE-xxx-xxx-xxx.xxx.domain.com.au' (using password:YES)

Have tried all the suggestions here but to no avail. Any ideas??

Thanks,
Rodney
Reply With Quote
  #10  
Old 06-29-2006, 03:58 AM
kenny's Avatar
kenny kenny is offline
Senior Member
 
Join Date: Jun 2005
Posts: 134
Default

@ducomagic: Most likely, you have not added your IP address to the list of allowed hosts. To resolve this, visit http://whatismyip.com/, copy the IP address, then go to cPanel -> MySQL Databases and add it to the list of allowed hosts.

Also, try using a separate MySQL user credentials (create a MySQL user via cPanel, and grant privilegest to the user for the databases you need to manage remotely).
__________________
Pick a different route.
Reply With Quote
  #11  
Old 07-01-2006, 07:09 PM
ducomagic ducomagic is offline
Junior Member
 
Join Date: Jun 2006
Posts: 3
Default

Thanks Kenny, but I have performed both of these tests, but still no success as yet.

R
Reply With Quote
  #12  
Old 07-01-2006, 07:22 PM
ducomagic ducomagic is offline
Junior Member
 
Join Date: Jun 2006
Posts: 3
Default

Ok - just further to my last post. I went through the whole process again and this time when I created a user, I noticed that the username had my main account user name added to it automatically as a prefix. Thus when I entered this username into MySQL admin - all good.

Thanks, appears to be working now.
Reply With Quote
  #13  
Old 07-02-2006, 02:30 PM
holmancarey holmancarey is offline
Junior Member
 
Join Date: Apr 2006
Posts: 26
Default

Yeah, that's a funny thing fantastico does to ensure the databases made by your account on the server hosting your site don't effect any of the other users databases also hosted on that server.
__________________
If It Isn't Challenging, Then It Isn't Worth Doing
Thunder Strike Online - Dedicated to RedMoon Enthusiasts Everywhere!
Reply With Quote
Reply

Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:29 PM.

Copyright © SiteGround.com Inc