mysql-workbench

Add mysql schema to MySQL Workbench?

|▌冷眼眸甩不掉的悲伤 提交于 2020-03-21 06:44:05
问题 If this is a super basic question I apologize; I'm still trying to grok MySQL and my options on interfacing with it. I'm wondering if I'm able to add the mysql schema to MySQL Workbench? I can see and access it via PhpMyAdmin and the command line. I'm also able to query a mysql table (user, for example) from Workbench itself. I'm mostly just curious if I can add it to the schema section in the lower left hand side of Workbench. I'm using version 6.3. Thanks for your time and suggestions! Edit

MySQL geometry function, points and polygons

心不动则不痛 提交于 2020-03-04 18:49:47
问题 I have a table name 'polygon_csa', which has two columns 'element_id' as an integer and 'poly' as a four point polygon I am trying to find which polygons enclose a point of my choice. I have tired the following code: Set @x = -60; Set @y = 10; set @xy=ST_geomfromtext(concat('Point (',@x, ' ', @y,')')); Select element_id from polygon_csa where ST_Contains(poly.polygons_csa,@xy); This returns error 1054 'unknown column Poly.polygons_csa in where clause'. I am running MySQL 5.7, is this a bug,

MySQL geometry function, points and polygons

北城以北 提交于 2020-03-04 18:48:06
问题 I have a table name 'polygon_csa', which has two columns 'element_id' as an integer and 'poly' as a four point polygon I am trying to find which polygons enclose a point of my choice. I have tired the following code: Set @x = -60; Set @y = 10; set @xy=ST_geomfromtext(concat('Point (',@x, ' ', @y,')')); Select element_id from polygon_csa where ST_Contains(poly.polygons_csa,@xy); This returns error 1054 'unknown column Poly.polygons_csa in where clause'. I am running MySQL 5.7, is this a bug,

Type not supported - The JSON data is not available before MySQL 5.7.8

一个人想着一个人 提交于 2020-02-27 20:32:39
问题 I am running local MySQL instance version of 5.7.23 in Ubuntu-18-04 . The DB is already having some tables having JSON fields to store JSON data. They working fine with insert, update and delete operations. The issue comes when try to modify an existing table to have a new field to store JSON data. MySQL-Workbench is giving an error saying Type not supported The JSON data is not available before MySQL 5.7.8. In order to use it, first set the version for your model to 5.7.8 or higher Following

Type not supported - The JSON data is not available before MySQL 5.7.8

大兔子大兔子 提交于 2020-02-27 20:32:01
问题 I am running local MySQL instance version of 5.7.23 in Ubuntu-18-04 . The DB is already having some tables having JSON fields to store JSON data. They working fine with insert, update and delete operations. The issue comes when try to modify an existing table to have a new field to store JSON data. MySQL-Workbench is giving an error saying Type not supported The JSON data is not available before MySQL 5.7.8. In order to use it, first set the version for your model to 5.7.8 or higher Following

Cannot open mysql-workbench

回眸只為那壹抹淺笑 提交于 2020-02-02 06:34:40
问题 I am starting to work on mysql but cannot open mysql-workbench. When I try to open it via the command line of ubuntu, I get the following error: /usr/lib/mysql-workbench/mysql-workbench-bin: symbol lookup error: /usr/lib/libgdal.so.20: undefined symbol: sqlite3_column_table_name I looked up everywhere, but couldn't find a way to fix it! Thank you in advance for any help! 回答1: Just install the latest deb from mysql-workbench website directly. 来源: https://stackoverflow.com/questions/55396652

Cannot open mysql-workbench

别等时光非礼了梦想. 提交于 2020-02-02 06:34:06
问题 I am starting to work on mysql but cannot open mysql-workbench. When I try to open it via the command line of ubuntu, I get the following error: /usr/lib/mysql-workbench/mysql-workbench-bin: symbol lookup error: /usr/lib/libgdal.so.20: undefined symbol: sqlite3_column_table_name I looked up everywhere, but couldn't find a way to fix it! Thank you in advance for any help! 回答1: Just install the latest deb from mysql-workbench website directly. 来源: https://stackoverflow.com/questions/55396652

How to disable column-statistics in MySQL 8 permanently?

柔情痞子 提交于 2020-01-31 21:31:44
问题 Since MySQL 8 the column-statistics flag is enabled by default. So if you try to dump some tables with MySQL Workbench 8.0.12, you get this error message: 14:50:22 Dumping db (table_name) Running: mysqldump.exe --defaults-file="c:\users\username\appdata\local\temp\tmpvu0mxn.cnf" --user=db_user --host=db_host --protocol=tcp --port=1337 --default-character-set=utf8 --skip-triggers "db_name" "table_name" mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of

Mysql Update throws Error 1175

自闭症网瘾萝莉.ら 提交于 2020-01-25 15:52:08
问题 I want to insert some rows in a table using MySQL 5.7 with MySQL Workbench 6.2. When I try it I get the error 1175 (update without WHERE in safe update mode) My query has a WHERE clause in it is filtering the PK of the table too. This is how it looks: > update inventory as inv > > set inv.fk_location = null > , inv.location_description = null > > -- only buffered rows > where inv.id_inventory in ( > select tmp.id_inventory > from tmp_inventory_location as tmp ) The subselect gives two rows

Mysql Update throws Error 1175

…衆ロ難τιáo~ 提交于 2020-01-25 15:51:51
问题 I want to insert some rows in a table using MySQL 5.7 with MySQL Workbench 6.2. When I try it I get the error 1175 (update without WHERE in safe update mode) My query has a WHERE clause in it is filtering the PK of the table too. This is how it looks: > update inventory as inv > > set inv.fk_location = null > , inv.location_description = null > > -- only buffered rows > where inv.id_inventory in ( > select tmp.id_inventory > from tmp_inventory_location as tmp ) The subselect gives two rows