Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Can't find information_schema

Questions related to using nuBuilder Forte.
Post Reply
steven
Posts: 370
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 53 times
Been thanked: 52 times

Can't find information_schema

Unread post by steven »

Hi people,

Both myself (on a bluehost.com) and another of my clients (using an in house server) are getting this error when installing or uploading a nuBuilder database.


CREATE VIEW `zzzzsys_object_list` AS select `information_schema`.`tables`.`TABLE_NAME` AS `zzzzsys_object_list_id` from `information_schema`.`TABLES` where (`information_schema`.`tables`.`TABLE_SCHEMA` = database())

MySQL said: Documentation

#1054 - Unknown column 'information_schema.tables.TABLE_NAME' in 'field list'


This does not happen when installing nuBuilder on my local WAMP stack from bitnami.

Does anyone know why?


Steven
A short post is a good post.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Can't find information_schema

Unread post by kev1n »

Steven,

Some versions of MySQL reportedly have problems with the overly, explicit, information_schema, column name

I was able to create the view with the slightly modified SQL

Code: Select all

CREATE VIEW `zzzzsys_object_list`  AS  select `table_name` AS `zzzzsys_object_list_id` from `information_schema`.`TABLES` where (`TABLE_SCHEMA` = database()) ;
steven
Posts: 370
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 53 times
Been thanked: 52 times

Re: Can't find information_schema

Unread post by steven »

kev1n,

Thanks


Steven
A short post is a good post.
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Can't find information_schema

Unread post by apmuthu »

Modify that to be:

Code: Select all

CREATE VIEW `zzzzsys_object_list`  AS  select `TABLE_NAME` AS `zzzzsys_object_list_id` from `information_schema`.`TABLES` where (`TABLE_SCHEMA` = database()) ;
and have it exported in a linux machine to preserve case in the nubuilder4.sql file.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Can't find information_schema

Unread post by kev1n »

The case is not the issue. It's the
overly, explicit, information_schema, column name
Post Reply