mysql-workbench

Export Data from mysql Workbench 6.0

柔情痞子 提交于 2019-12-02 13:53:36
I'm trying to export my database, using MySQL Workbench 6.0 on Windows, to send to my db instance in Amazon RDS, but i'm getting this error: Operation failed with exitcode 7 11:34:40 Dumping clubbin (taxicompanies) Running: "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqldump.exe" -defaults-extra- file="c:\users\selene\appdata\local\temp\tmp6o0hno.cnf" --max_allowed_packet=1G --delayed- insert=FALSE --host=localhost --user=root --port=3306 --default-character-set=utf8 "clubbin" "taxicompanies" mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE' Does anybody have any idea that can help

MySQL Workbench Error 1175 Even With a “Where” Statement

落爺英雄遲暮 提交于 2019-12-02 13:22:13
I am running MySQL Workbench 6.3.8 b1228 CE (64-bit) in "safe update mode". I am trying to run a query with a "WHERE" statement, but it still returns "Error 1175" Here is my query statement: DELETE FROM `my_db`.`table_name` WHERE `email` = 'john@smith.com'; (Obviously "my_db" and "table_name" are placeholders.) Why would Workbench throw Error 1175 for this query when I have the most basic of "WHERE" statements included? Arun Kumaar In Sql by default safe options is enabled which restricts the user from deleting or updating the data in table using inappropriate key.To turn of the safe update go

cant connect opencart to mySQL database

喜你入骨 提交于 2019-12-02 12:54:28
问题 I'm trying to set up opencart for my website, but when I fill in everything for the MySQL database I get this error: No connection could be made because the target machine actively refused it. I've tried putting it on localhost, I've tried on 127.0.0.1. when I try on 192.168.1.126 (the database server) it says it can't find the database the server hosting the PHP site is on 192.168.1.125 I'm very new to SQL, I really don't understand it fully. I'm creating a new database in SQL workbench. and

MySQL A or B but NOT both

自作多情 提交于 2019-12-02 12:38:35
This seems like an easy query but I cannot seem to get it or relate it to other posts on stack overflow. Would anyone be able to explain... This is what I have so far, it is returning records for all bars where one or both people go. TBL frequents Schema - drinker VARCHAR(50) PK, bar VARCHAR(50) PK Bars which are frequented by John or Rebecca but not by both of them SELECT DISTINCT bar FROM frequents WHERE drinker = 'John' XOR drinker = 'Rebecca' AND bar NOT IN ( SELECT f1.bar FROM frequents f1, frequents f2 WHERE ( f1.drinker = 'John' AND f2.drinker = 'Rebecca' AND f1.bar = f2.bar ) );

Forward Engineering MySQL Workbench Error 1064

一个人想着一个人 提交于 2019-12-02 10:17:23
I made a EER diagram and I am trying to Forward Engineer it but I get this error and I can't find the mistake. Executing SQL script in server ERROR: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INDEX fk_User_Wallets1_idx ( Wallets_idWallets ASC) VISIBLE, CONSTRAINT ' at line 13 SQL Code: CREATE TABLE IF NOT EXISTS `mydb`.`User` ( `idUser` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NULL, `email` VARCHAR(45) NULL, `adress` VARCHAR(45) NULL, `password` VARCHAR(45) NULL, `saldo` INT NULL,

Converting a number into a word in Mysql

空扰寡人 提交于 2019-12-02 08:24:01
问题 I am getting a value from database and I want this value to be converted into a word in Mysql . can someone please help me out. Eg: 123 --> this value am getting from database and it is getting saved in a numeric form and I want to retrieve this value as hundred and twenty three from the database. What is the syntax to do that? Query is like this: select 'value' from value_table where date is '10-10-2012'; ans is--> 123 I want this value to be displayed as hundred and twenty three. Please

How to join tables together - SQL

淺唱寂寞╮ 提交于 2019-12-02 08:20:44
问题 This is a SQL question I have two tables I need to join together, using the inner join syntax. One named Entry, and the other named prize. I need to list the event_id, horse_id, place, money . ENTRY (TABLE NAME) COLUMNS IN TABLE ENTRY: Event_id, Horse_id Place PRIZE (TABLE NAME) COLUMNS IN TABLE PRIZE: Event_id, Place, Money This is as far as I have got, I just can't get my head around it. SELECT event_id, horse_id, place FROM ENTRY INNER JOIN PRIZE ON ENTRY.money = PRIZE.money Thanks 回答1:

MySQL Error 1005?

岁酱吖の 提交于 2019-12-02 08:00:31
问题 I'm trying to create a database, but am getting a strange error... This is my code DROP TABLE IF EXISTS `Person`; DROP TABLE IF EXISTS `Address`; DROP TABLE IF EXISTS `Email`; DROP TABLE IF EXISTS `Airport`; DROP TABLE IF EXISTS `Customer`; CREATE TABLE Address ( AddressID INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(AddressID), AddressStreet VARCHAR(255), AddressCity VARCHAR(255), AddressState VARCHAR(255), AddressZip VARCHAR(255), AddressCountry VARCHAR(255) ); CREATE TABLE Email ( EmailID INT

ERROR 1075: Incorrect table definition; there can be only one auto column and it must be defined as a key

冷暖自知 提交于 2019-12-02 07:42:12
I try to "alter Table" I need one more AI field, not key... "List" ID INT(11):PK Not Null AutoIn.. Name VARCHAR UserID INT(11):FK Not Null edit BOOL and now i need one more field "sortpos" as AI. I try it with MySQL Workbench ALTER TABLE `**mydb**`.`List` ADD COLUMN `sortpos` INT(11) NOT NULL AUTO_INCREMENT AFTER `edit`; Can u help me? Thx You can't get better error message than this one. You already have ID defined as Auto Increment in your table. Now you are trying to add another field sortpos as auto increment which is not allowed. One table can only have one auto increment which must be

cant connect opencart to mySQL database

核能气质少年 提交于 2019-12-02 04:55:57
I'm trying to set up opencart for my website, but when I fill in everything for the MySQL database I get this error: No connection could be made because the target machine actively refused it. I've tried putting it on localhost, I've tried on 127.0.0.1. when I try on 192.168.1.126 (the database server) it says it can't find the database the server hosting the PHP site is on 192.168.1.125 I'm very new to SQL, I really don't understand it fully. I'm creating a new database in SQL workbench. and filling in the info I need. How to I fix this error? My guess is that your DB user is only allowed to