This topic is locked
[SOLVED]

 Using Information_Schema in MySQL

10/21/2018 8:54:39 AM
PHPRunner General questions
K
klyle author

I have an application where I need to read the tables and columns from Information_Schema in MySQL. This is in 9.8
I found this "Each MySQL user has the right to access these tables, but can see only the rows in the tables that correspond to objects for which the user has the proper access privileges."
As long as I create a single user who has privs on all databases in question, it works in the built in browser, my user can access Schemata, Tables, Columns tables of Information_Schema, but throws an error "connections/Connection.php on line 661" in MySQL.
Any ideas?

F
fpilot 10/24/2018



I have an application where I need to read the tables and columns from Information_Schema in MySQL. This is in 9.8
I found this "Each MySQL user has the right to access these tables, but can see only the rows in the tables that correspond to objects for which the user has the proper access privileges."
As long as I create a single user who has privs on all databases in question, it works in the built in browser, my user can access Schemata, Tables, Columns tables of Information_Schema, but throws an error "connections/Connection.php on line 661" in MySQL.
Any ideas?


Hi Ken, Did you get an answer to your question? I am stuck aswell with an issue that i want to give access to a field if the user is an admin and not anyone else, pls advise

K
klyle author 10/31/2018

Yeah, sorry, I don't recall the exact solution. I think it was user error on my part. It works about like I said initially.
In my case, I want the user to be able to select tables and columns from Information_Schema.