mysql-workbench

MySQL Workbench (version 6.0.8) SSH Authentication Issue

ぃ、小莉子 提交于 2019-12-21 06:58:20
问题 I am trying to connection to a MySQL server on Host X through machine Y over SSH. The same setup (but older version of MySQL workbench) works on my another box (CentOS 6.3). However, the same setup doesn't work on my CentOS 6.5. I tried to use the SSH key for authentication between my box and machine Y over SSH, and it works when I ssh from my box to machine Y. However, MySQL workbench gave me the following error: ERROR Could not establish SSH connection: Bad authentication type (allowed

Create Trigger to delete rows that are >90 days old

谁都会走 提交于 2019-12-21 05:51:35
问题 Trying to create a trigger that will delete any record that is 90 days old. I used a trigger statement from stackoverflow that I have found and changed the statement a bit, but in my MySQL Workbench, I am getting a syntax error. I cannot seem to figure what is wrong. Below is my query: create trigger user_connections_dump after insert on user_connections for each row begin delete from connection_time where Date('2014-06-09') > Date('now','-90 days') end; 回答1: Your need looks more like an

Create Trigger to delete rows that are >90 days old

流过昼夜 提交于 2019-12-21 05:51:04
问题 Trying to create a trigger that will delete any record that is 90 days old. I used a trigger statement from stackoverflow that I have found and changed the statement a bit, but in my MySQL Workbench, I am getting a syntax error. I cannot seem to figure what is wrong. Below is my query: create trigger user_connections_dump after insert on user_connections for each row begin delete from connection_time where Date('2014-06-09') > Date('now','-90 days') end; 回答1: Your need looks more like an

How to find Missing Indexes in MySQL?

谁说胖子不能爱 提交于 2019-12-21 05:41:46
问题 5 and i want to identify missing indexes in it. Can somebody please help me to identify ? This will help us to increase the performance of query that leads to application. 回答1: The best what I can think of is to use the EXPLAIN to check the execution plan of your query with index and without index and then see the difference in query performance. You can also refer: Does MySQL exectution plan depend on available indexes? Using EXPLAIN to Write Better MySQL Queries How to find un-indexed

Unsupported option provided to mysql_options()

谁说我不能喝 提交于 2019-12-21 04:54:07
问题 I have installed mysql-server and mysql-workbench on my local machine having Ubuntu 16.04 as OS. I am able to connect to mysql-server through CLI, but not through mysql-workbench. mysql --version mysql Ver 14.14 Distrib 5.7.12, for Linux (x86_64) using EditLine wrapper mysql-workbench --version MySQL Workbench CE (GPL) 6.3.6 CE build 511 I am consistently getting this error from mysql-workbench when i try to connect to mysql-server. Unsupported option provided to mysql_options() please help

MySQL Workbench: “Can't connect to MySQL server on 127.0.0.1' (10061)” error

这一生的挚爱 提交于 2019-12-20 09:56:09
问题 I apologise.. I know this question has been asked many times before, but I've tried lots of suggestions, and simply can't find a solution. The problem: I have a MySQL database running on a hosted server. I have to use SSH to connect to it, and I have the relevant Public and Private Key files. I specifically want to use the PC version of MySQL Workbench , to access this database, for running queries, checking data, etc. If I run Sequel Pro on a Mac, it connects fine, and I can browse and query

insert csv file data into mysql

天涯浪子 提交于 2019-12-20 06:37:41
问题 I want to insert data into mysql table from csv file. Import data from region_codes.csv file. In region_codes.csv file having 3 columns in 3rd columns it had , separated data, include those commas how to insert in mysql. DROP TABLE IF EXISTS `region_codes`; CREATE TABLE `region_codes` ( `country_code` CHAR(2) NULL, `region_no` varchar(5) NOT NULL, `region` VARCHAR(45) NULL, INDEX `idx_country_code` (`country_code`) ) COLLATE='utf8_bin' ENGINE = MyISAM; Using LOAD DATA LOCAL INFILE I import

Join of two tables as to get entire records

こ雲淡風輕ζ 提交于 2019-12-20 05:53:42
问题 I am creating two tables .Table 1 has following schema user_id int not null,autoincrement movie _id int not null movie_name varchar user_name varchar rating int genre varchar user_Id movie_Id movie_name user_name rating genre 1 1 Twister Alex 6 Drama 2 ! Twister Tim 1 Drama (contd..) while table 2 has following schema movie _id int not null movie_name varchar user_name varchar genre varchar movie_Id movie_Name user_name genre 2 Harry Porter Alex Fantay 3 Narnia Alex Fantasy .. ...(contd) Now

hg diff on MySQL Workbench files

六眼飞鱼酱① 提交于 2019-12-20 03:07:40
问题 I'm posting this as a Q&A to document a workaround for a problem that seems to come up frequently—how to put MySQL Workbench files under version control—but for which I have been unable to find any solutions. Feedback is welcome! How can I tell Mercurial to diff the contents of a zipped archive and ignore some of the changes to those contents? Specifically, how can I use hg to diff the contents of a MySQL Workbench ( .mwb ) file, ignoring the many unimportant changes that MySQL Workbench

Why are queries executed from mysql workbench taking much longer than executing them directly from the mysql cli?

。_饼干妹妹 提交于 2019-12-20 02:28:32
问题 I have a query that does multiple joins on several tables and uses a covering index. It seems to run a lot faster when executed directly from the mysql cli instead of from mysql workbench. mysql > some query ... 250 rows in set (0.05 sec) from mysql workbench it takes about ~0.200 sec duration / 0.100 sec fetch Is there a reason beyond latency, authentication and transfer of data why it would be orders of magnitude faster on the console? Does a three-way tcp handshake occur each time a query