mysql-workbench

Connect mysql workbench to GCE mysql

我的梦境 提交于 2019-12-24 10:24:10
问题 It's been two days and I've given up on this. I'm unable to connect to my google compute engine running mysql using workbench. I've followed instructions on numerous stackoverflow links to no avail. See below status of everything. Below is executed on the GCE via ssh browser window. lunchbusters_za@lamp-inst:~$ cat /etc/mysql/mysql.conf.d/mysqld.cnf | grep bind bind-address = 0.0.0.0 Note I've also commented out above bind-address. lunchbusters_za@lamp-inst:~$ netstat -an | grep 3306 tcp 0 0

How to model a MySQL structure to deal with authentication? With users information separated

纵然是瞬间 提交于 2019-12-24 08:13:12
问题 I need help to model a table structure for my database. I have two tables: teacher and student. And to deal with authentication, I have another table called: user. I want to maintain the information about teacher and student separated of the information about login (user table). For example: teacher ----------------- | id | name | ----------------- | 10 | lorem | | 20 | ipsum | | 30 | dolor | ----------------- student ----------------- | id | name | ----------------- | 5 | amet | | 6 | sitt |

SQL subquery to get the total

梦想与她 提交于 2019-12-24 06:58:42
问题 Using SQL subquery, how do I get the total items and total revenue for each manager including his team? Suppose I have this table items_revenue with columns: All the managers (is_manager=1) and their respective members are in the above table. Member1 is under Manager1, Member2 is under Manager2, and so on, but real data are in random arrangement. I want my query to output the ff.: This is related to SQL query to get the subtotal of some rows but I don't want to use the CASE expression. Thanks

How to convert MYSQL query into MSSQL query

不羁岁月 提交于 2019-12-24 02:46:06
问题 I've 700+ MySQL queries and now trying to create same set of queries in MSSQL. I want to generate MSSQL query with same MYSQL.Is any way to convert MYSQL query into MSSQL query. 回答1: From this article by Brian Swan, you can download the SQL Server Migration Assistant for MySQL tool and use it to convert a single MySQL query to a SQL Server query: Create a Project: All the information you need for downloading SSMA, creating a project and connecting to databases is in steps 1-6 of this blog

Creating foreign key in MySQL

不羁的心 提交于 2019-12-24 00:56:06
问题 I trying to create foreign key in MySQL using MySQL workbench. But there is an error $ Executing: ALTER TABLE `project_course`.`attendance` ADD CONSTRAINT `FK_Student` FOREIGN KEY ('idStudent') REFERENCES `project_course`.`student` ('userid') ON DELETE NO ACTION ON UPDATE NO ACTION; Operation failed: There was an error while applying the SQL script to the database. ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

Warning: mysql_select_db() Access denied for user ''@'localhost' (using password: NO)

感情迁移 提交于 2019-12-23 12:15:52
问题 I am fairly new to web dev and I am in need of help trying to find out what the problem is. I had an install of MySQL 5.6.10 and I was given a task to update the src of a website that is currently live for past 5 years. None of the code has changed and it works for the other devs local machine. The server is running 5.0.51b and I just downgraded to 5.5.30 trying to get a syntax error to go away. The error was the SET OPTION SQL_BIG_SELECTS=1 was deprecated to SET SQL_BIG_SELECTS in a certain

Can't run MySql Utilities

拜拜、爱过 提交于 2019-12-23 07:46:14
问题 When I try and run MySQL Utilities from WorkBench I get the following error: h3tr1ck$ mysqluc -e "help utilities" Traceback (most recent call last): File "/bin/mysqluc", line 23, in <module> from mysql.utilities.common.options import license_callback, UtilitiesParser File "/Library/Python/2.7/site-packages/mysql/utilities/common/options.py", line 34, in <module> from mysql.connector.conversion import MySQLConverter ImportError: No module named connector.conversion Then, if I type "mysql" into

How can I solve these line errors on MySQL Workbench?

孤街醉人 提交于 2019-12-23 07:20:33
问题 As you can see, there's no syntax error or something like that on my code. Can you guys help me? 回答1: I guess this is just a little bug in the error markup machinery. Try editing the code or close this editor and open a new one. If you have a list of steps to reproduce this you could even create a bug report, so that gets fixed. 来源: https://stackoverflow.com/questions/38125736/how-can-i-solve-these-line-errors-on-mysql-workbench

How to insert values into auto identity column in MYSQL [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-23 07:20:11
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I would like to insert values into mysql innodb table Auto_Increment column. I am loading some data from an old table to new table which has an identity, and need to preserve the existing values from the old

The EER diagram editor is not displaying column data and other information

别等时光非礼了梦想. 提交于 2019-12-23 07:11:04
问题 When running mysql-workbench on Ubuntu 14.10 I am getting unexpected behavior in the GUI. If I double click on a table in the EER diagram editor I can't see a list of columns and their attributes. My screen looks like this: When I double click on a table in the diagram editor the expected behaviour is to list each column in the table along with its attributes within the area highlighted in pink. I should be able to modify, delete, and add columns. Why am I seeing this behaviour and how can I