How to load and execute query log on mysql server? - mysql

Hi i'm new on this site and i thank you all right now for the help you guys are hopefully going to give me. I am also new to the mysql enviroment. So, i have been told by my professor to find some tools which given in input log files (general or slow query) reproduces on a mysql server all the queries such as select, delete, update and insert. The tool should possibly be multi-threaded. I found something like mysql workbench or mk-log-player but i'm not sure if that is what i am looking for since as i have told before i'm new in the mysql enviroment.

I think You want Sql client for using Mysql
use SQL-yog client it is good for multiple connections to database.
you can download it from here
http://code.google.com/p/sqlyog/downloads/list

Related

DBeaver - missing procedures in MySQL database

I have connected to my work database via DBeaver. Recently colleague told me about a procedure that lets me check newly added entities through our front-end.
And I can't find it in the list of procedures, nor using this query:
SHOW PROCEDURE STATUS WHERE Name LIKE '%name%'
I have the same connection settings as my colleague's, same user, etc, but he uses DbForge and I use DBeaver, cause at some point of time DbForge began having too much restrictions for free version (I wasn't simply able to execute queries), and the older version my colleague gave me didn't install in Windows 11.
So, I'm thinking may be there's some settings in the DBeaver that hide certain stored procedures, or I need to adjust connection settings.
Does anyone has clue on this?
Or may be someone could suggest some alternative to DbForge, which allows to execute queries in the free version and to set colors to connections (I find that thing convenient), and possibly doesn't have this problem, may be because of being more MySQl-oriented.
Thanks in advance!
I've tried to open connection settings and check out the additional parameters there, but can't seem to notice anything relevant.
Ok, seems like there was misunderstanding between me and my colleague, and he actually meant some another DB Server, but with same User/Password combination. Thanks for the comments, that also helped in finding the cause. I really did install MySQL Workbench, saw the same picture in there, and started wondering what else it could be and reading our communication again.
My mistake) The question is no longer actual.

Is there a good way to perform SQL dump of MySQL database in DataGrip?

I'm trying to use JetBrains DataGrip as my primary DB tool. However, I still find myself using SequelPro for SQL Dump. Here is why:
On a database level, I couldn't find any SQL dump functionality. The only options seems to be "copy DDL", which copies the schema, but not the content.
On a table level, sure, I can export data as SQL Inserts. But then it seems the only way to do so is to export it from each table separately, which is unacceptable. Another downside is, when exporting data as INSERT, it creates a separate INSERT statement for each row.
I tried to look for plugins, but couldn't find any. DataGrip users, if you came up with any solutions, please let me know. Sequel Pro works like a charm, but I really would love to use one database client at the end of the day.
PS. SSHing to a server and running sqldump is not an option for me, for various security reasons.
In 2016.2 there is some functionality, check like in screenshot.
2016.3 will be integrated with mysqldump.

Is there a MySQL client that can run multiple queries in one tab?

Note that I'm not asking about how to send multiple SQL statements in one request to the DB server.
I've worked with SQL Server Management Studio for a while. And I liked how you can have a lot of SELECT statements in one .sql file. And if you pressed F5, it will run your SELECT statements independently and multiple result sets will be presented to you. Is there something like this for MySQL?
With all of the MySQL clients I've tried. One tab is limited to 1 SQL statement. You can write multiple statements, but you can only run only one of them at a time.
I tried SQuirel, HeidiSQL, MySQL Workbench CE, dbeaver. Right now I'm stuck with the free version of SQLYog. Each all have great features. But not one has this feature I was looking for.
Edit:
Thanks to Aishatter for suggesting Toad for MySQL. I made a screenshot of it showing the feature I was looking for:
imgur screenshot
It can even remember previous executions, this is the "Set 6" and "Set 7" as seen in the screenshot.
Edit2:
Toad was too slow for me. And so I ended up with SquirrelSQL which also has this feature I'm looking for, but note that I think this is only present in their latest snapshot build - 20150623_2101
Have you tried Toad for MySQL?
It is works a charm. Like a MySQL on a SQL Management Studio.
You can execute multiple queries at the same time. With a feature of query formatting.
Yes.
Here you go HEIDI MYSQL
http://www.heidisql.com/download.php
This is one of the finest tools I have been playing with since last 4 years.

Synchronizing tables on 2 MySQL servers

I have 2 MySQL servers: one for development, other for production. Both contain same table structure, but different data on tables.
When I have done change on dev server, like add column to table, I have manually made the same change later to production server. But this slow and error prone, especially if there are many changes to be made at once.
Is there better way to do this? I have phpMyAdmin, maybe that has some neat trick?
Also, is there a dedicated term for what this process is called? Searching for 'table update' or similar does not yield results on this topic.
EDIT:
Forgot to mention that I am using Windows.
So apparently I need some kind of diff tool for this. I haven't tested all of these proposed software yet, but so far they seem very useful.
I've used Red Gate's SQL Compare before for SQL Server; this is their MySQL product. I don't have the budget to buy it myself, but if it works anything like SQL Compare did, it'll do exactly what you want it to do.
When ever I do this I have used the data or structure sync in a Mysql GUI app called Navicat, there is a free version available and it does what you asked perfectley.
Try to compare and synchronize databases with schema/data comparers in dbForge Studio for MySQL.

From where the Mysql history is coming in Workbench?

i have observed that workbench has an option called history, which is giving all my db operations in day wise, i want to know from where it is getting, i mean is mysql is maintaining any table internally. I need to update the databse everyday to my client so it will be useful to me, Please help
If anyone still needs this the history is stored (at least in Windows 7) in UserFolder\AppData\Roaming\MySQL\Workbench\sql_history in separate XML files for each day.
For mac users, you can find the history files at
/Users/<username>/Library/Application Support/MySQL/Workbench/sql_history
Though the history file stored there only has some dates in it(Seems like Workbench is using it for some indexing.... not sure though). If you need actual history with queries you can check the log files at
/Users/<username>/Library/Application Support/MySQL/Workbench/log/
I think that regarding this http://dev.mysql.com/doc/workbench/en/wb-history-palette.html the Workbench history is kept from what you acctually execute in the workbench and it is not taking this data from the MySQL server.
Is is a log of queries that you have run in Workbench.
Also "Like the mysql command line client utility, MySQL Workbench has a full history panel, which provides complete session history. This makes it very easy for a user to review, re-run and modify previously executed SQL statement(s). Along with that, multiple queries can be executed at the same time while their results can be viewed in individual tabs. You can also have multiple SQL tabs open at the same time."