Gostovanje ::: 026. Povezava z MySQL bazo podatkov na daljavo

Note: If connecting from your home computer, you need a MySQL client like Navicat, phpMyAdmin, or Dreamweaver.

See our article on Managing Your Database with Applications for some suggested programs and more details. 

Configuration Settings:

Host name = (use the server IP address)
Database name = (cpanelUsername_databaseName)
Database username = (cpanelUsername_databaseUsername)
Database password = (whatever you picked)
MySQL Connection Port = 3306
TCP or UDP, either is fine.

Before you can connect:
Many of our servers block port 3306 inbound, if you are getting a "Connection Refused" error when trying to connect please submit an email to our support team requesting that we open port 3306 for your IP address to be able to connect to MySQL remotely.

Also, before you can connect to MySQL from another computer, you must enable your computer as an Access Host. It may sound confusing, but cPanel makes this very simple.

Video: Allowing remote MySQL connections

cPanel

We also have movie tutorials for cPanel [x3 Skin], cPanel [x Skin].

When using X3, login to cPanel and click the Remote MySQL icon, under Databases.
Type in the connecting IP address, and click the Add Host button.
All done, try connecting remotely.
-or-
When using X, login to cPanel and click the MySQL Databases icon, under Databases.

Scroll all the way to the bottom and type in the connecting IP address where it says "Host (% wildcard is allowed):", and click the Add Host button.
All done, try connecting remotely.

How can I find out my computers IP address?
Simple, just go to http://whatismyip.com

Wait a minute, my IP constantly changes.
Okay, you have a dynamic IP address. Therefore, every time you go online, or every once in awhile, your IP changes. You have a few options here. The most secure, would be to update your IP in Remote MySQL every time your IP changes. However, you do have other options available. You could simply enter % (a percentage sign) in the Add Access Hosts text field. This will allow any IP to remotely connect to your databases. Another option: Lets say the first two parts of your IP never change. Then, you could enter 93.138.%.% , where the first two parts are your actual IP address numbers.

I enabled remote access, now what?
You will need a third party application to access MySQL remotely. Some are free and some cost money.

  • 0 uporabniku/om je bi članek v pomoč
Vam je bil odgovor v pomoč?

Povezani članki

Gostovanje ::: 004. cPanel Video podpora

We have set up step-by-step movies on how to do nearly everything with your account. cPanel X3...

Gostovanje ::: 001. Prijava v cPanel

cPanel is used for managing your web hosting account and available on all Linux hosting plans,...

Gostovanje ::: 003. cPanel Priročnik

These are great resources we hope will help: Video Tutorials by cPanelOfficial cPanel User Manual

00. Gostovanje ::: Obvestilo

Članki v tej kategoriji so trenutno na voljo samo v angleškem jeziku. V kolikor imate...

Gostovanje ::: 002. Varna prijava v cPanel

How do I use shared SSL to access cPanel ? Use https and our IP address, followed by the secure...