Access denied in creating schema on MySql Cluster - mysql

I'm unable to create a schema on freshly set-up MySql Cluster 7.4.7 on single windows machine. It fails with error ERROR 1044 (42000): Access denied for user ''#'localhost' to database 'my_schema'. What is it that I'm missing? During installation I was not asked for username and password for MySql, so what are the defaults?
Also to give detail on how I set-up (in case that is not proper), I following this tutorial and using default settings on new cluster wizard, I have been able to successfully run 2 Multithreaded data node (ndbmtd.exe), 1 Management Node (ndb_mgmd.exe), 2 SQL Node (mysqld.exe). I also stopped mysql server 5.5 running on my machine previously. Then, using command line and typing mysql I'm able to connect and show databases; result in 2 schemas:
information_schema
test
Thanks in advance.

After further trying, I've been able to get away with both the problems above:
Instead of create schema, I used create database and it worked.
By default there is no password. I'm able to connect with user as root without any password.

Related

CREATE USER and GRANT to create a user that can access database from Power BI

I am pretty new in here and the answer might be obvious here but I am quite lost.
So, I have MySQL Database (hosted on Amazon AWS RDS). I would like to query data directly from power bi using a user (that is not the root user) with minimum privileges.
So here is the steps I did (done in MySQL Workbench):
I created a user named powerbi
CREATE USER 'powerbi'#'localhost' identified BY '12345'
I granted SELECT privilege to user
GRANT SELECT ON *.* TO 'powerbi'#'localhost'
I checked the user status using SELECT * FROM mysql.user
[Here is the output]
I want to try my connection by connecting it using MySQL workbench but I encountered an error
[connecting]
[connection error]
When I am trying to connect to the database using Power BI, here is the error I got:
[power bi error]
Any idea of what steps I missed?
i think Your Hosting Not Allow. MySql Database Remote access.
Check four point
IP Address or hosting Name
User Name
Passwords
database Name

MySQL Access Denied for user ''#'localhost'

I am having trouble creating a database on my local server using MySQL.
Approach:
Start mysqld as administrator
Start MySQL as administrator
mysql> create database db_name;
MySQL throws an error indicating, "Access Denied for user ''#'localhost to database 'db_name'.
What do I need to specify to MySQL to create a database?
You need to provide a valid user/password combination to gain access to MYSQL.
You also need that the user you are using have the privileged to create a database.
On default, new users have zero access to the database management including creation.

Can't connect to localhost MySQL database through command line?

Weird issue. Can't connect to localhost MySQL database from command line, but I can through MySQL program, Sequel Pro. Any ideas why? I entered the same user/password, but I'm getting a access denied error for root#localhost
Extra question: can you run MySQL commands within Sequel Pro? I'm pretty new to MySQL, but I'm just trying to change a simple column definition.
EDIT: reset password from within Sequel Pro query for root, and was able to get it working.
MySQL has different accesses. You can allow a MySQL database to only serve requests from a specific machine, or only from the local machine.
However, note that MySQL differentiates login from "localhost" and from "127.0.0.1".
Try allowing both localhost, 127.0.0.1 and "%" to the account.

Single user with multiple databases in Plesk 11

I am running Centos6 with Plesk 11 and I am trying to assign a single user to have access to multiple databases. I am following the instructions given here: http://kb.parallels.com/en/115783
When I run the command GRANT ALL PRIVILEGES ON newdb.* TO 'olduser'#'%'; from the SQL tab in phpmyadmin, I am getting the following error:
1044 - Access denied for user 'openemm2'#'%' to database 'openemm_cms'
openemm2 is the username I have assigned to this database -- why the error and what can I do about it?
Found the solution to this. I had to log into the mysql> prompt using:
mysql -uadmin -p`cat /etc/psa/.psa.shadow`
This allowed me access to run the command. I have also discovered one can accomplish the same thing through the phpmyadmin panel access through the database servers link from the servers tab in Plesk 11. This is where you find the master phpmyadmin where you can access ALL of your databases rather than the individual access phpmyadmin you get through the database link in the websites & domains tab.

Inserting data into a cloudfoundry mysql database using vmc tunnel

I am trying to insert data into a cloudfoundry mysql database as follows:
vmc tunnel myapp --port 10000 mysql
Then:
mysql> source /home/julien/Documents/donnees/projets/Site-Rencontres/java/src/main/resources/misc/sql/geolocation.sql
ERROR 1142 (42000): INSERT command denied to user 'udYra*****'#'172.30.*.*' for table 'geolocation'
What strikes me is that the user I retrieved using java.lang.System.getenv("VCAP_SERVICES"); is different from the one above:
"user":"ukqM8******"
My question is twofold:
How can I prepopulate the cloudfoundry database with data?
Why is the above user different from the one I retrieved from the VCAP_SERVICES env variable?
EDIT: I was able to succefully connect to mysql using vmc tunnel's none option and then pointing to port 10000 from the mysql client. I am now running into mysql privileges issues and I opened another thread here on SO.
The reason the users are different is that Caldecott uses a different binding to the application where you inspected VCAP_SERVICES.