Connect Power BI with mith MySQL of shared database - powerbi

There is a database in PHP which is not hosted on a local machine.
I want to connect the database to Power BI.
The error is:
MySQL: Unable to connect to any of the specified MySQL hosts.
The MySQL connector is already installed.
Here is the proof:
Image

So, if it is the first time you are connecting to it, then you can see an icon at the home page called MySQL. Then click on it and it will ask for details. It will ask for the server name. Enter the name and database if required. Then it verifies and asks for the username and password to login.
The server IP address in your image is IP address 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 your server to power BI

Related

API Publisher and Store not displaying API

My wso2registry was pointing to wso2carbon datasource which was configured with h2 db. Other db were configured with mysql. I was getting errors that there are some locks on h2 db and my wso2 server was not starting up .I changed the wso2carbon to point to mysql regdb endpoint. The server started after that. Now the api created earlier in the publisher console are not visible. The api are also not showing up in the store even though the store says that it is listing some 18 apis. If i create the apis again I get a duplicate error.
I tried to point the wso2carbon datasource back to the same h2 db but still the publisher and store apis do not come up.
Is there a way I can clean up the apis so that I can recreate them with regdb configured with mysql db
To see your APIs with H2 database again, reindex the registry.
Change the <lastAccessTimeLocation> element in the <APIM_HOME>/repository/conf/registry.xml file in the Store/Publisher node. For example, change the /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime registry path to /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime_1.
Restart the server. After a few seconds, it should re-index the APIs.

ColdFusion 2016 Login failed for SQL Server database

Using ColdFusion 2016 and MS SQL Server Express 2016
I got past the first connection error by turning on TCP/IP and IPALL and setting the port to 1433.
I have SQL Server set to mixed authentication.
ColdFusion Administrator Server: Localhost Port: 1433
Username and password left blank. In SQL Server, the owner is Administrator, the account used to set up SQL Server and ColdFusion.
Now I can't get past the error:
Cannot open database "xxx" requested by the login. The login Failed.
Any suggestions?
I would add a new user for the database.
Go to the database, then go to security, then add the new user.
Make the new user have admin rights to the database.
Located under: Security>Logins>right click user go to properties
Then click user mapping and make sure they are assigned as a admin for this database.
To limit rights later, you may want to remove admin rights, but try that at first to get it working.

How to access MongoDB values/data after binding to cloud foundry?

I am using spring boot and created a web application using a mongodb database. Locally I use command prompt "mongod" and "mongo" where I can query the data that I have inputted in the UI.
My current application is using MongoDb running on localhost with default port 27017. My web application reflect the data that is stored in the database. When I push this application to cloud foundry, and bind the MONGODB service, it uses another database. Where and how can I view/access all the data that are being inputted. On the local machine I am able to use db.collection.find() and it queries all of my data.
Problem
Once I push my application to cloud foundry, All my data that was stored locally is not linked with it. I am able to store values into PCF MongoDB. But I do not know how to view the data that I have in it. Is there a command or a method to view all the data that I have inputted into PCF MongoDB?
Attempt
Looking at my VCAP_SERVICES I was able to see my database name, username, and password. But they look like they are encrypted, it has letters numbers and hypens all mixed. Example below how VCAP looks like(replica values, same format)
"database": "9faf201a-39b1-4lse-49242f404g11"
"host": "10.100.100.333"
"password": "2jnkj4nk22kk5lk6kj4n4k6nkj6001"
"username": "401849301k-8g3f-5c3j-k28-583920308592f04"
I tried using the code below in a CLI
mongo someurl.mongodomain.com:45475/database_name -u username -p password
So for databasename, username, and password I simply copied and pasted the encrypted looking username and password
mongo myurl.com:1337/9faf201a-39b1-4lse-49242f404g11 -u 401849301k-8g3f-5c3j-k28-583920308592f04" -p 2jnkj4nk22kk5lk6kj4n4k6nkj6001
and I get a connection failed. Maybe I have to input the correct user name and password. Where can I set a username and password? I am using spring boot and it was automatically handled for me. So that, I never created a username or password.
Here are five suggestions (thanks to Daniel.Mikusa for the last one):
Push a web client for mongodb and bind it to your database. There seems to be a cloudfoundry wrapper for mongo express: https://github.com/komushi/cf-mongo-express .
You may be able to connect to the remote mongodb with the mongo client program in a similar way as you connect to your local mongodb. You can find the credentials (username, password, db-name) in the environment of your app:
cf env <your-app-name>
Access to the mongodb instance may, however, be blocked from machines outside of your CloudFoundry installation. In this case you may want to try the next option.
Push a docker container that has the mongo client installed to cloudfoundry. Ssh into the docker container, and use the mongo client from there. Pushing docker containers to CF is not enabled in all cloudfoundry installations.
Finally you could expose your domain objects via REST-Controllers. Possibly using spring data rest: http://projects.spring.io/spring-data-rest/.
Use cf ssh and an ssh tunnel. Bind the mongodb instance to an app, run cf env to get the host, port and credentials (or make a service key). Then run cf ssh -N -L <localport>:<service-fqdn-or-ip>:<remote-port> app-name (the app you connect to doesn't strictly matter, it's just the one we are tunneling through). Now connect a client to localhost:<localport> and use the credentials you got from cf env.

how to configure neo4j database on ec2

I set up a neo4j database on ec2 and am not sure how to access it with my restclient. Firstly, how do I change the username and password once its on ec2 and running? Also, what do I change my localhost to so I can access the server?
This is the example statement I want to know how to configure:
from neo4jrestclient import client
db = client.GraphDatabase("http://localhost:7474", username="neo4j", password="neo4j")
The first action you have to do on a new neo4j instance is changing the password. To do so use your browser and connect to the db using http://:7474. Use default login neo4j/neo4j and change your pw.
Your client app then of course needs to supply the changed password.
Alternatively you can change the pw by REST API as sell, see http://neo4j.com/docs/stable/rest-api-security.html#rest-api-security-user-status-and-password-changing.

Deploying WSPs to SP2013: I was not able to connect to the sql data even after deploying the WSPs properly

I developed a webapplication Example1:7575 which uses FBA. Now, I deployed these WSP's to a new server Production:2525 to get the same functionality of my previous server's webapplication. However, I was not able to fetch the data from sql server and I'm getting the following error: A Membership Provider has not been configured correctly. Check the web.config setttings for this web application.
Actually, I have manually entered the same membership and role providers of my previous server's central admin, security service token & web application's web.config entries to this new web.configs and matched them.
Can someone help me with where I might be doing wrong. Any help would be greatly appreciated.
If you can't fetch data from SQL Server there's probably an issue with permissions to the database. Check the database connection string that FBA is using. It likely uses Windows authentication to connect - in which case it will be connecting as the user assigned to the app pool for the web application and the secure token service. Check that the configured app pool identities have permissions to access the sql server databases.