I have created a MySQL database and a table via cPanel on a web server of mine. My question is this: How can I access this Database and Table from a Visual Basic.net application?
What do I use as the host address? The http address to the web server is http://www.canninginc.co.nz
If you are trying to connect to MySQL from a remote location (for example from your computer), please use these instructions:
Use the IP address of your hosting account as your MySQL hostname.
Your IP address can by found on the left hand column when you login
to cPanel.
Please add your computer IP address to the cPanel -> Remote MySQL section. You can check the computer IP address at http://www.tracemyip.org/
Use either the MYSQL username / password that was created in cPanel -> MYSQL section, or your cPanel login details to connect to the database
Related
I have a database in phpmyadmin, which is not hosted in my local machine. I just have the username and password to enter in the database. link and info is below:
I want to connect the "outreachbin" database to power bi. for that i did the following steps:
1.Get Data > Database > MySQL Database
2.server:127.0.0.1:3306(also tried localhost:3306)
Database: outreachbin
3.Database:
username:phpmyadmin
password: *******
got error: "MySQL: Unable to connect to any of the specified MySQL hosts."
Also installed mysql connector but always getting this error. How can i solve this problem? Thanks
It appears from the screenshot you posted that phpMyAdmin is hosted on server IP 54.90.3.4. Assuming the database is hosted on the same server you may want to try setting your server value to:
server:54.90.3.40:3306
The port 3306 assumes that the database server is running on the default port.
So, if it is the first time you are connecting to it, then you can see an icon at the home page called as MySQL. Then click on it and it will ask details. It will ask the server name, enter the name and database if required. Then it verifies and asks the username and password to login. the server Ip in your image is IP 54.90.3.4 this is your hosted server. If your database is hosted on same server, you should set your same server value. Add the default localhost in the last. follow here to connect to powerBI
i'm trying to connect to a CPanel database on a remote server from my Laptop's SequelPro, it's not working and i have no idea why, i've set the remote access to be the '%' wildcard, so my specific machine shouldn't matter
I'm using the domain name of the site and i've used the correct username and password for a user i created on my CPanel's DB... what am i doing wrong? Or am i overlooking some detail?
It should just login with the domain and user credentials right?
Please ask your hosting providers if they do allow remote mysql connections to their mysql server. Most of the providers don't. You could test that by doing a telnet connection on the mysql server's ip address, portt 3306.
telnet mysql-server-ip 3306
If you can connect then they do allow incoming mysql connections from the internet to their server. If not, then there is nothing you can do. Just write them, explain your problem and see what they say.
Login to cPanel and go to MySQL Databases. Check if there's any remote mysql server shown there. If not, most probably the MySQL runs locally on the cPanel server the mysql server ip = the cPanel server ip. If you go to
cPanel -> Remote MySQL you can add there your ip address or the ip you're connecting to. That might fix your issue...
I have created a free Azure Website with Wordpress on it. A ClearDB mysql database was automatically created.
I want to remote connect to the DB using something like MySQL Workbench.
I used the credentials from the "View connection strings" in the azure portal dashboard, but there is an error connecting.
I read in some post that the db itself is hosted in azure cloud and thus can not be accessed.
Have anyone managed to administrate a DB like this ?
Mostly hoster don't allow an external connection with shared hostings.
When you use an outside client, your server has to be configured to allow this external connection.
Firewall rules :
You must to set password before make this, for security improvement.
You must to update firewall and make rules to open the mysql port (3306) on the server that is running the mysql database.
Set user IP :
Add an user account or replace ip address.
Adding users :
CREATE USER 'monty'#'localhost' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'monty'#'localhost'
Replace ip address (be careful don't use this on the root user) :
RENAME USER 'user'#'ipaddress2' TO 'user'#'ipaddress2';
To allow all ip replace ip adress by %.
See more :
Security Guidelines.
How to determine if a port is open on a Windows server? or www.portcheckers.com.
Yes, it is possible to administer your ClearDB MySQL database in MySQL Workbench. I have several Azure Wordpress sites that I connect to just as you describe -- create the Azure site, view Connection Strings, type those credentials into MySQL Workbench, and voila. #Yaron, Can you be more specific about what you've tried and maybe we can troubleshoot from there?
I am trying to connect to MySql db using VS2010. I added my ip address in cpanel allow hosts. I also grabbed the IP address for the server where the database is hosted which is just my website.
So I go to server explorer, right click database connections and clicked on add a connection
I select .NET Framework Data Provider for MySQL for Data Source
for Sever Name I typed the IP address for my website where the Database is
Typed in the user name and password who has all the privileges, and entered the Database Name too.
When I hit test connection I always getting "Unable to connect to any of the specified hosts"
any advice is appreciated
Thanks
So, in order to connect to a MySql database from VS2010 see the link bellow:
http://www.itcsolutions.eu/2010/09/09/how-to-connect-to-mysql-database-from-visual-studio-vs2010-problems-with-net-connectors/
Have you tried adding % as your access host under Manage Remote MySQL Access of your Cpanel?
Try this
http://zambalestechrealm.wordpress.com/2012/03/08/vb-net-remote-access-to-mysql-database-of-my-website-2/
It says
Goto Your site Cpanel, and look for MySQL remote access, in my case i put % in the list of user to access remotely to my database. ‘%’ percent means to allow all connection to connect to my MySQL database.
I'm trying to setup my databases in Sequel Pro (a mysql app). Localhost won't do. Any idea how I can get server name?
You should be able to use the IP address or host name of your server.
Your MySQL server name is often te same as your website domain (e.g. example.com).
From http://dev.mysql.com/doc/refman/5.1/en/connection-access.html:
Your identity is based on two pieces of information:
The client host from which you connect
Your MySQL user name
So even if you've know your host, you have to allow remote connections with a specified user. Please see this guide for that. Your IP address could be entered as host.
Try your websites domain, also check to see if the mysql server allows remote connections.