mysql-workbench

How to get ER model of database from server with Workbench

Deadly 提交于 2019-12-18 09:59:09
问题 Is there any way to get an ER model of a database from the server that is connected to my MySQL Workbench? 回答1: Go to "Database" Menu option Select the "Reverse Engineer" option. A wizard will be open and it will generate the ER Diagram for you. 回答2: I want to enhance Mr. Kamran Ali's answer with pictorial view. Pictorial View is given step by step: Go to " Database " Menu option Select the " Reverse Engineer " option. A wizard will come. Select from " Stored Connection " and press " Next "

MySQL Error 1064 when adding foreign key with MySQL Workbench

China☆狼群 提交于 2019-12-18 04:47:16
问题 So I have an error, when I want to add a foreign key. I added the foreign key in MySQL Workbench with an EER Diagram Model. The lines workbench tries to add are:` CREATE SCHEMA IF NOT EXISTS `barberDB` DEFAULT CHARACTER SET latin1 ; USE `barberDB` ; -- ----------------------------------------------------- -- Table `barberDB`.`BARBER` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `barberDB`.`BARBER` ( `ID` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45)

Openshift: How to remote access MySQL?

99封情书 提交于 2019-12-17 21:47:39
问题 So I just finished setting up a JBoss application server gear on Openshift and I attached a MySQL and phpmyadmin cartridges. My question is if there is a way to remote access to the database server using an app like MySQL Workbench ? 回答1: You can use rhc port-forward to forward ports from your database to your local machine. Check out the tutorial here. The basic idea of port forwarding in this context is that you can forward ports on your local machine to ones on the gear. So in your case,

Customizing Keyboard Shortcuts in MySql Workbench

荒凉一梦 提交于 2019-12-17 21:45:23
问题 Having spent a number of years working primarily with MS SQL Server (and hence SQL Server Management Studio for common tasks), I am now beginning to work with MySql. To date I have been using MySQL Workbench and am generally happy with it. I would, however, like to be able to assign custom keyboard shortcuts for certain commands (e.g. commands from this list). For example, I'd prefer to stick to the MS-SQL approach of 'F5' to execute queries, rather than hitting 'Modifier+Return'. I haven't

SQL - error code 1005 with error number 121

蓝咒 提交于 2019-12-17 18:53:20
问题 I'm running the following MySQL script (trimmed down), generated automatically by MySQL Workbench and I get the following error: Error Code: 1005 Can't create table 'regula.reservation' (errno: 121) I'm not very proficient with databases and this error is not very informative. What is the problem here? -- ----------------------------------------------------- -- Table `regula`.`Users` -- ----------------------------------------------------- DROP TABLE IF EXISTS `regula`.`Users` ; CREATE TABLE

MySQL Workbench Dark Theme

放肆的年华 提交于 2019-12-17 17:24:14
问题 I am new here on Stackoverflow and have full of excitement bringing up my first question. My first question is all about changing the color appearance of MySQL Workbench from the default of white background to its negative value of black. I was planning to pair the theme with my Dark Theme Eclipse Juno. Adjusting my eye contrast to the quick change of color could damage my eyesight. Furthermore about this question, I am open for suggestion if such change is possible or not. Thanks. 回答1: It's

MySQL Workbench Dark Theme

好久不见. 提交于 2019-12-17 17:22:03
问题 I am new here on Stackoverflow and have full of excitement bringing up my first question. My first question is all about changing the color appearance of MySQL Workbench from the default of white background to its negative value of black. I was planning to pair the theme with my Dark Theme Eclipse Juno. Adjusting my eye contrast to the quick change of color could damage my eyesight. Furthermore about this question, I am open for suggestion if such change is possible or not. Thanks. 回答1: It's

Can't connect to MySQL server on '127.0.0.1' (10061) (2003)

怎甘沉沦 提交于 2019-12-17 08:25:08
问题 I know this question was asked a lot before but I tried some of the solutions which were given and nothing worked.. I have downloaded MySQL Workbench 6.1 on my windows 7 x64 and now as I want to start and do a simple DB I set a new MySQL Connection and let it as default the Hostname, port and the username I just set the name of the connection. In the beginning it was showing down in the action output that Could not connect.Server may not be run and in the msg part it was written Can't connect

Error Code: 1062. Duplicate entry '1' for key 'PRIMARY'

情到浓时终转凉″ 提交于 2019-12-17 06:35:25
问题 I have a problem on this error message, when i try this: INSERT INTO `PROGETTO`.`UFFICIO-INFORMAZIONI` (`ID`, `viale`, `num_civico`, `data_apertura`, `data_chiusura`, `orario_apertura`, `orario_chiusura`, `telefono`, `mail`, `web`, `Nome-paese`, `Comune`) VALUES (1, 'Viale Cogel ', '120', '2012-05-21', '2012-09-30', '08:00', '23:30', '461801243', 'informazioni@bolzano.it', 'Bolzanoturismo.it', 'Bolzano', 'BZ') Error Code: 1062. Duplicate entry '1' for key 'PRIMARY' I haven't auto_increment

MySQL Errno 150

若如初见. 提交于 2019-12-17 03:42:46
问题 I'm creating a few simple tables and I can't get passed this foreign key error and I'm not sure why. Here's the script below. create TABLE Instructors ( ID varchar(10), First_Name varchar(50) NOT NULL, Last_Name varchar(50) NOT NULL, PRIMARY KEY (ID) ); create table Courses ( Course_Code varchar(10), Title varchar(50) NOT NULL, PRIMARY KEY (Course_Code) ); create table Sections ( Index_No int, Course_Code varchar(10), Instructor_ID varchar(10), PRIMARY KEY (Index_No), FOREIGN KEY (Course_Code