how to connect to a shared mysql database to power bi - mysql

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

Related

How to know where my MySQL database is being hosted and how can I access it?

I have the following information to a SQL database
Server : MyUserName.mysql.db
User : MyUserName
Password : MyPassWord
I am a little noob in this context, so I have some questions:
How to know where is hosted my database? Is it in mysql domain? (Isn't that the type of database?)
How can I access it and visualize it?
To begin with, you need a CLIENT to be able to access your database. For MySQL, you can use either Workbench or MySQL CLIENT (the last giving you command-line level access).
Second, and according to your information, the server is MyUserName.mysql.db so if you try to PING that server you should get some response.
Third, MySQL has a default port number so you need to configure your client to access that server though that port (if I'm not mistaking, 3306).
You will also need access credentials to your database.
Your DB administrator should be able to provide all the information you need.
Contact your database administrator.
If you're trying to acess/visualize sql server database on your local computer install ssms to connect to your local database , similarly you can access any other database through ssms.

Cannot connect to Azure MySQL service with MySQL Workbench

I'm using MySQL Workbench on a 64bit/Win 8.1 machine to trying to connect to an Azure MySQL service, but everytime I get the following error:
Lost connection to MySQL server at 'reading authorization packet', system error:0
I followed many tutorial found ever the internet, and I also tried to disable temporarely the firewall: most of them says that the only needed parameters are:
hostname (the one given in Azure portal/MyDB/Properties)
username (the one given in Azure portal/MyDB/Properties)
(optional) password (to store in vault)
I tried also using different connection methods (Standard TCP/IP and Local socket/pipe, as suggested here) but nothing.
Can help?
I was not able to recreate your issue. Here are the steps that I tried with a MySQL database created thru the Azure portal.
Open MySql Workbench.
Setup new connection with the following settings.
Hostname: HOSTNAME
Port: PORT
Username: USERNAME
Pasword: PASSWORD
Database: DATABASE NAME
Test Connection > Succeeded.
The settings above came from portal.azure.com > MyDatabase > All settings.
One suggestion is to contact ClearDB support. You can login to ClearDB from your database's Azure dashboard by clicking on Manage Database. From there you can go to Support and log a support incident.
I was also struggling with a similar issue, as I was not able to connect my MySQL workbench with Azure VM that's running MySQL.
I've contacted the Azure support to help me out after trying it for 3-4 hrs.
They suggested me to go into network security group of that VM, and add 3306 or whatever port that your MySQL is running on our Azure to the inbound and outbound list and add the exception as All.
It helped me to connect MySQL workbench with Azure VM with MySQL on it.

Connection failed in using mysqlconnector ODBC to connect from sql to access

I am trying to connect mysql database in phpmyadmin to the access file. I am using mysqlconnector ODBC for that. Tutorial I am following is this
The problem is that when I give the credentials to connect to database, it gives me error as shown in this snapshot
I have tried hard to search on internet but failed. What mistake I am doing. I am putting the ftp information of the server there. Is there any database credentials i need to put?
You can't use the FTP credentials to connect the MySQL database. You have to use the database credentials. Make sure you have done followings before connecting.
Make sure MySQL server is up and running on the HOST IP and PORT.
Your MySQL server can accept connections from your IP or use % for
all IPS
Make sure you have a valid USER account
EDIT
Or tell us where(local server, internet, IP) the MySQL database is installed. The port number the server is listening on. How you access MySQL server normally.

Connect to database using Workbench

I have a database on my server and I want to connect to it through MySql Workbench, I entered my HostName, Username, Password, When I click Test Connection I get this Error Message:
Failed to Connect to MYSQL at **.**.***.**:3306 with user root.
Host '**.171.199.66' is not allowed to connect to this MySQL server
I am 100% sure my Hostname, username and Password are correct, I did some research and from what I managed to find out that I have to actually permit an access from my IP address to the database before I can connect.....if this is correct could someone explain to me how to give myself e permission to connect to my database on server.
It is likely that your MySql root account is configured to not accept remote root logins (its a default). If you are trying to connect from anywhere but localhost its not going to allow it. Your're right you need to permit access for your IP. You need to do it from within the server your MySql is installed on. In case of if you have managed hosting, your hosting company should provide you with a tool like phpMyAdmin or such, to manage your MySql. If it is your own installation, you can connect to mysql server instance from the console and go from there.
Check out another stackoverflow post:
Here is what you should be looking for in phpMyAdmin:
Keep in mind it might look a bit different depending on the phpMyAdmin Version.

connect to mysql database using visual studio 2010 remotely

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.