mysql-workbench

How to get a table creation script in MySQL Workbench?

假装没事ソ 提交于 2019-12-12 07:08:30
问题 I am rolling back to MySQL GUI Tools' MySQL Query Browser since I can't find the shortcut to get a table's creation script in MySQL Workbench. 回答1: I cannot find such an option either, at least in the Community edition. I suppose this corresponds to the Reverse Engineering feature, which, unfortunately, is only available in the commercial edition (quoting) : reverse engineering a database directly from a MySQL server applies to commercial versions of MySQL Workbench only . Still, you can use

Large Number of columns, Select all takes forever

随声附和 提交于 2019-12-12 06:59:55
问题 There are 210 columns in my table with around 10000 rows. Each row is unique and there is a primary key on the table. The thing is we always had to do select all query on the table to get data of all the sites. Currently, the problem is it takes too much time and the data returned is around 10mb and it will be large in the future. The table has varchar, text and date types in it. Is there any way I can modify the structure or something to make my retrieval faster. More indexing or breaking

A CREATE script exported by MySQL Workbench has syntax error on another computer

南笙酒味 提交于 2019-12-12 05:48:19
问题 I created a database on my computer, with MySQL 5.5 and MySQL Workbench 5.2.34 CE installed. Then i want to migrate the database to another computer, which has MySQL 5.0 installed. (I just need to migrate the schema, data are not needed) I use the MySQL Workbench's File -> Export -> Forward Engineer SQL CREATE script to generate db.sql script and copy it to the other computer. I type mysql < db.sql to create the database but only to receive an error. Error occurs here: DELIMITER $$ CREATE

Is it possible to read list of files using mysql

二次信任 提交于 2019-12-12 04:56:44
问题 I am trying to read list of files in a directory and store all of them in a table using mysql For e.g I have thousand image files in this folder /User/Images I want to store all the file names into a table in mysql. Is it possible to do this using using just mysql, I dont want to use any programming language that has API for File read and write. 来源: https://stackoverflow.com/questions/28751872/is-it-possible-to-read-list-of-files-using-mysql

Unable to get left outer join result in mysql query

随声附和 提交于 2019-12-12 04:38:25
问题 SELECT BB.NAME BranchName, VI.NAME Village, COUNT(BAC.CBSACCOUNTNUMBER) 'No.Of Accounts', SUM(BAC.CURRENTBALANCE) SumOfAmount, SUM(CASE WHEN transactiontype = 'C' THEN amount ELSE 0 END) AS CreditTotal, SUM(CASE WHEN transactiontype = 'D' THEN amount ELSE 0 END) AS DebitTotal, SUM(CASE WHEN transactiontype = 'C' THEN amount WHEN transactiontype = 'D' THEN - 1 * amount ELSE 0 END) AS CurrentBalance FROM CUSTOMER CU, APPLICANT AP, ADDRESS AD, VILLAGE VI, BANKBRANCH BB, BANKACCOUNT BAC LEFT

Windows cmd not detecting flask server

折月煮酒 提交于 2019-12-12 03:46:57
问题 I'm working on vagrant and running host on 127.0.0.1:5000, but problem is cmd is not detecting any host, due which workbench is continuously giving error on making ssh connection. Here is my host running : And flask server is running on port :5000 And workbench is countinously giving error. I think error is due to workbench is unable to locate host : In vagrant file forwarded_port is 5000 : 来源: https://stackoverflow.com/questions/37321679/windows-cmd-not-detecting-flask-server

Why have a lost tables when moving from phpmyadmin to local MySQL Workbench

纵然是瞬间 提交于 2019-12-12 02:53:12
问题 I have a Huge database in phpmyadmin. It have 1500 tables because I'm using Drupal. I used the command mysqldump -u [username] -p[password] [databasename] > [filename.sql] To create a .sql file on the server. It took some time but was 100% complete. I then tried to copy the file to my local machine with Filezilla, it kept crashing and stopping so I used the command scp [my_username]@[my_host]:[filename.sql] /some/local/directory.sql This took a couple of hours but also said It was 100%

Using MySQL Workbench to update multiple values in the same columns

笑着哭i 提交于 2019-12-12 01:15:50
问题 I need to run a mysql query to update a stratodesk database. What I'm trying to achieve: I need to update a whole bunch of thin client PC's through stratodesk, unfortunately there is no bulk update to do this so i am working directly with the MySQL database. The goal is to update the image used and the update mode. I've got two MySQL queries to do this, one of which will update the image itself the other will update the "image update mode". if i run the first query it will update the image

How to migrate MS SQL database running on remote machine to my local MySQL database running on linux, preserving encoding

不羁的心 提交于 2019-12-12 01:09:09
问题 I have a remote Windows 10 machine running SQL Server (v12, Express edition) and I need to transfer one database to my machine, which is running MySQL database (MariaDB). MS SQL database contains special characters (Czech language diacritics) that get messed up if I try to use MySQL Workbench on the remote machine to migrate database to MySQL running on the same remote machine. How can I transfer database correctly? 回答1: Using MySQL Workbench, I have tried these combinations, none of them

SQL statement works in Workbench but not in Java

浪尽此生 提交于 2019-12-12 00:44:53
问题 The SQL statement below works in mySQL Workbench, but when I execute it in Eclipse, there is an mySQL exeception error. com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by schedule.id' at line 1 String sqlStr = "select movie_db.movie , schedule.date , schedule.timeslot " + ", schedule.seats as NoSeats," + " a.bookingsMade, if ( (schedule.seats-a