mysql-workbench

errno: 1251, sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client

这一生的挚爱 提交于 2020-07-17 13:58:11
问题 I'm creating the simple api project in nodejs. For that i have installed mySql workbench with version 8.0.11. I have created config file, dbConnection.js file and in the dbconnection.js file i have written the following code : var mysql = require('mysql'); var path = require('path'); var config = require(path.resolve('./', 'config')) var connection = mysql.createConnection({ host: config.databaseHost, user: config.databaseUser, password: config.databasePassword, database: config

SQL Friends List Query

允我心安 提交于 2020-07-16 05:39:12
问题 I am new to this database SQL language so I will try to make it as simple as possible. (I am using MySQL Workbench) I have a table for User and I want multiple users to be friends with each other. For that I created the friends table where it has a user_id and friend_user_id. So let's say we have (1,2), (2,3). I want this to be read as: "2 is friends with 1 and 3, 1 is friends with 2, 3 is friends with 2". So when inserting on this friends table I never do something like this (1,2),(2,1). I'm

Mysql2::Error: Out of sort memory, consider increasing server sort buffer size using docker-compose.yml

自闭症网瘾萝莉.ら 提交于 2020-07-10 10:24:49
问题 Hi I'm building a rails app and I imported lots of data and inserted into the database. Some tables are okay and some tables have some errors that says out of sort memory. SQL ERROR Mysql2::Error: Out of sort memory, consider increasing server sort buffer size How do you increase server sort buffer size using the docker-compose.yml command? I've tried this one: version: '3' services: db: image: mysql:latest command: - --default-authentication-plugin=mysql_native_password - --innodb-buffer

how to change (Update) column name in table using MySQL workbench?

纵饮孤独 提交于 2020-07-06 08:24:51
问题 I am new to MySQL. I created a table with column name First Name but it is wrong. Now I want to change my column name First Name to First_Name . Is it possible? If yes please explain how I can change my column name. 回答1: You can change it by following these step : Right click the table shown at the left in Schema tab of workbench and then select Alter Table . You will get a window like this -> Here you can see the column names available, edit here and click on apply. You are done. 来源: https:/

how to count with more than 1 having clause mysql

非 Y 不嫁゛ 提交于 2020-06-17 14:28:29
问题 i have 1 table called order_star_member, which contain createdAt as the date of the transaction, users_id as the buyer, total_price_star_member as the amount of the transaction. on this case i want to find out buyer who had star member (transaction in a month within >= 600000) and find out where they coming from, the data(dummy) for order_star_member begin on January 2019 untill March 2019 CREATE TABLE order_star_member ( users_id INT, createdAt DATE, total_price_star_member DECIMAL(10,2) );

How do I get my forgotten MySQL password from MySQL Workbench on macOS?

夙愿已清 提交于 2020-06-12 09:14:27
问题 I have forgotten my root mysql password. However, it is stored in MysqlWorkbench. Is there any way to get it back? Thank you. 回答1: On macOS keywords are stored in the keychain. Hence you can open up the Keychain app, go to the Password section and enter mysql in the search box. A list of entries should come up with values of your MySQL connections you created in MySQL Workbench. Get the password from the entry you need (you have to enter your login password to see it). 来源: https:/

MySQL Workbench left navigator panel missing on MAC?

心不动则不痛 提交于 2020-06-09 16:46:46
问题 I connected to the server in mysql workbench but I see that something has changed? There used to be a navigator panel on the left hand side with all the schemas and the database options like this: But now on mine it only shows: I have tried going to the preferences and clicking on all the options but nothing works??? 回答1: There's a splitter between the Object/Session info and the schema tree/management part. In your case it's moved up all the way, so you only see the lower part. Drag the

MySQL Workbench left navigator panel missing on MAC?

↘锁芯ラ 提交于 2020-06-09 16:45:25
问题 I connected to the server in mysql workbench but I see that something has changed? There used to be a navigator panel on the left hand side with all the schemas and the database options like this: But now on mine it only shows: I have tried going to the preferences and clicking on all the options but nothing works??? 回答1: There's a splitter between the Object/Session info and the schema tree/management part. In your case it's moved up all the way, so you only see the lower part. Drag the

Stemming Words in MySQL

我的未来我决定 提交于 2020-05-29 07:54:26
问题 Stemming Words in MySQL For e.g. the user might search for "testing", "tested" or "tests". All these words are related to each other because the base word "test" is common in all of them. Is there a way to get such result or function? 回答1: MySQL Full-Text Search Historically, full-text searches were supported in MyISAM engines. After version 5.6, MySQL also supported full-text searches in InnoDB storage engines. This has been great news, since it enables developers to benefit from InnoDB’s

How to do zoom in/out or increase font size in mysql work bench

不想你离开。 提交于 2020-05-27 13:20:28
问题 I am trying to change the font size of text in the SQL script or zoom in/out. I couldn't figure out how. Is there a way I can do the same. 回答1: At the bottom of the editor, do you see the drop down labeled "100%". Try that to change the font size. 回答2: Mac Answer Zoom in and zoom out are available in the view menu, as well as their shortcuts. PC Answer You can change the font, going to Edit > Preferences... > Appearance > Fonts section Afterwards restart mysql workbench to finally change the