db2admin does not have the privilege to grant option? - ms-access

I am using db2 9.7.2 (express) version. Trying to connect the db2 via ODBC to MS Office 2007. connection all worked well but when try to open table from access error saying db2admin user does not have previlage for the operation...
I has done the typical installation of db2.. so Is there anything more to do for user right ?.. db2/msoffice works good. Only thing with the access right...
please help me to solve this.

Who created the database (owns DBADB profile) and who created the instance (SYSADMIN profile)?
Probably, you created a database with a different user to db2admin, and for this database the user db2admin does not have special privileges.
Check the groups in you operative system, the sysadmin_grp group in the instance, and who created the database. The problem could be solve just by adding db2admin in a operative system group (db2admins).
If db2admin could connect to the database, because the connection grant is public, but the data access is restricted to some users. Just by adding dbadm to db2admin or giving the profile sysadmin, then db2admin will have the complete control of the database.

Related

Jawsdb on heroku, new database post migration, (Mysql2::Error: INSERT command denied to user..?)

Deployed a new version of our app on heroku and migrated over database from previous free jawsdb instance. However now every time user signs up gives
(Mysql2::Error: INSERT command denied to user <username for instance
what have i missed
migrated using a dump and re-import using mysql command line. eye balled exported data and it seems to be there (user emails etc)
all config vars look ok (DATABASE_URL is mysql2...)
i can login to the database via the url
I have not had to grant access or anything like that before, anyone come across this?
thanks
Ben
My guess is they disabled your INSERT grant because you have reached your max Storage Capacity for your plan.
To validate this is a permissions problem, log into a MySQL prompt with the user the app is running as, and enter this query:
SHOW GRANTS;
It probably list many, but no INSERT.
See this link. As explained in given link, jawsdb preliminary plan does not give you permission to add a new database. You are provided with one schema with some random name and you have to work with that only.
Check your migration
e.g. Make sure the database name matches.
For me, I got the same error as OP when trying to migrate my data. This was a fresh account with only a 50kb'ish database; nowhere close to the free-plan 5mb limit.
In my SQL export statement, my local database name is being used, however the remote MySQL (ie JawsDB) service auto-generates a db name, which will obviously not be the same. Simply used find-replace to change the database name to match remote; everything works.

Preventing WAN access to a Database

How do I prevent WAN access to a particular database in SQLyog? I am able to grant full access to particular DB's, but not able to prevent them. I have a Web APP that runs on an internal server and accesses MySQL on the same server. I have created a SQL user with my workstations IP, but I am receiving access denied from dbconnect when I run the APP from my workstation.
Thanks,
Tony Cripps
MySQL does not allow connections from anything other than what you've specified. If you want to disallow access from a particular IP or network, then that mean that you've already gone and granted access to them.
Review the CREATE USER syntax, particularly the section on specifying hostnames.
Review the user accounts that you've already created:
SELECT user, host, password FROM mysql.user;
And then re-create them as necessary.
Other than than that, if you want to completely disallow WAN access then you should be looking at your firewall settings, not MySQL.

What to send someone to access my mysql database?

I have a mysql database on my pc , what should i send someone to access it :S? A connection string or a live link .Is it possible?
Thank you
This worked perfectly for me. You're essentially giving them access to a separate installation of phpmyadmin that provides them access to any of the databases on your server via their separate database login credentials
Is your computer available to others through the Internet, or does your ISP block access through port 80 (HTTP)? If the other person can access a web server on your computer that person could admin your mySQL database through phpMyAdmin?
If the other person knows how to use a terminal to perform sql-tasks I guess you could grant this person permission (see: http://dev.mysql.com/doc/refman/5.1/en/adding-users.html).

Why this doesn't work: [MySQL][ODBC 5.1 Driver]Access denied for user

So I know that there is a very similar question to this all over the web as well as stack overflow:
Error Access denied for user MySQL server?
But my question I think is different. So I have set up a linked server and it works. I have the correct permissions set up for my IP's that I am using. However the problem arises when our user "webuser#correctIP" tries to access it. Therefore, any user using window authentication is allowed to access it and works great. But any that are not using windows authentication are blocked.
However, I have tried all the common solutions such as setting up a strict password, changing security settings in Microsoft SQL Server etc. Nothing is working.
FYI: I am using this from Microsoft SQL Server 2008 -> mysql (through phpMyAdmin)
What I needed to do was to create a new user for my linked servers database(user for the mysql database). Then I had to set up that user in the security section of the linked server properties box. Once I created my new user and then chose "Be made using this security context:" and then added my newly created user and password it worked great. If you have any question please just ask. Thanks

User facing an issue with MS- Access

Currently user using connections to both TEST and PROD instances using MS Access, and everything goes well. By using ABC user. Now user having problems with APPS user in TEST .
Also, user having the same problem with user XYZ in PROD instance. This user has the ‘SELECT ANY TABLE’ privilege, so it should be able to see the tables, but doesn’t work from MS Access.
Please suggest us.
If you're able to connect via a SQL connection (I'm assuming ODBC) then you'll be using a predefined set of credentials (i.e. you'll be passing a username and password to Access; probably through the connection string).
Chances are that if your user is unable to get into the database directly, their network (AD?) account is not configured with the same elevated privileges that the ODBC connection has.