Perhaps not really a suitable SO question but I'll give it a try.
When I try to dump my DB from the remote server, my MySQL workbench for MacOS tells me:
Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump is version 5.7.12, but the MySQL Server to be dumped has version 5.7.15.
Because the version of mysqldump is older than the server, some features may not be backed up properly.
It is recommended you upgrade your local MySQL client programs, including mysqldump, to a version equal to or newer than that of the target server.
The path to the dump tool must then be set in Preferences -> Administrator -> Path to mysqldump Tool:
I have version 6.3 installed, and the built-in "check for updates" only tells me I already have the latest version.
Does anyone know where I can go to download this more recent dump tool? I looked around on the MySQL.com but couldn't find it.
There's a simple way to solve your problem.
Just go on google type: mysqldump 5.7.20 (this number is the version are you looking for, in my case is 5.7.20)
choose the link site from https://dev.mysql.com/downloads/mysql/
on that page scroll down until you see a list of avaible downloads, choose your operating system (in my case is Windows) then... download the zip that has the version you are looking for.
unzip that folder... go to bin inside it... from there copy mysqldump and paste it into your MySQLWorkbench folder... (replacing the one is in there)
restart your MySQLWorkbench... and that is all.
You just need to update the mysqldump.exe.The up to date version of the exe can be found in. To solve the issue just go to Edit->Preferences->Administrator ,and browse the following path
for example C:\Program Files\MySQL\MySQL Workbench CE 5.2.47\mysqldump.exe
If for some reason you have two separate installations of the SQL server, you might be pointing to the wrong sqldump.
Related
I would like to install MySql in the D: drive instead of my C: drive and subsequently have all my databases stored in a folder that should look like this D:\ProgramData\MySQL\MySQL Server %VERSION%
I wasn't able to find satisfactory answers:
https://forums.mysql.com/read.php?169,644290,644290
https://forums.mysql.com/read.php?11,39720
Mysql installation to different drive
And on the MySql documentation section the only mini-guide is this:
https://dev.mysql.com/doc/mysql-installer/en/mysql-installer-change-path-proc.html
So my question is:
is it feasible to install MySql in D: without incurring in major or even minor problems down the road? Has anybody tried this and have have some tip on how to conduct the installation to avoid possible pains in the future?
In the latest version of MySQL Installer, the "Advanced Options" link as described here is no longer there. However, you can trick the installer into giving you extra options where you can change the Install Directory and the Data Directory.
If you are installing MySQL Server 8.0.22, for example, the installer will try to create the folder C:\Program Files\MySQL\MySQL Server 8.0. But if you create this folder before opening the installer, then when you go to step 2 in the installer, you will be presented with "Path Conflicts" options where you can specify different directories.
Click here to see a screenshot of the secret Step 2
Note: This same approach works for MySQL Workbench. The folder you would create is C:\Program Files\MySQL\MySQL Workbench 8.0 CE.
In the 8.0.26 (installer version 1.4), you can choose the Custom Setup type.
And in the next step you go to Advanced Options and specify the location to install.
Trying to dump simple database via MySQL Workbench by clicking...
Server > Data Export >mydb>Start Export
Get Message: mysqldump Version Mismatch... the message shows these versions
mysqldump.exe ver 5.7.1.7
MySQL Server ver 5.7.19
Read most of the post on topic here and see I need to point Workbench to newer version of mysqldump.exe via clicking Edit > Preferences > Administration
But when I point to the version found in C:\Program Files\MySQL\MySQL Workbench 6.3 CE then try the data export it still reports the mismatch.
So The Questions:
1 - Where do I download mysqldump.exe newer version?
2 - Or what is the solution?
I also found an app on the Win 10 machine that shows me all the MySQL stuff and allows me to Add or Update... and it reports that everything is up to date...
3 - But now I can't find out how to re-launch that tool... any ideas how to relaunch this app?
I use MySQL Community Edition and I solved this problem today.
goto https://dev.mysql.com/downloads/mysql/
download the ZIP archive of your desired version
Open the ZIP archive and go to "bin" folder
extract MYSQLDUMP.EXE where you want
Close the Zip Archive and open MySQl Workbench
In MySql Workbench goto to Edit > Preferences > Administration
Select the file that you just extracted in "Path to mysqldumptool"
Press OK and it's done!
31/01/2019 update: I need a Workbench or mysqldump.exe that works with a MySql server 5.7.18 CE. I can't find anything. Who can help me?
To download the mysqldump.exe version needed by MySQL Workbench to execute a dump, you have to download the MySQL Community Server from:
if you need the latest GA version: https://dev.mysql.com/downloads/mysql/
if you need previous GA versions: https://dev.mysql.com/downloads/mysql/ then click on "Looking for previous GA versions?"
if you need an oldest archived version: https://downloads.mysql.com/archives/community/
After you have the archive, you can find mysqldump.exe inside "/bin" folder.
This is a standalone software so you can copy it where you want, then delete the rest of the archive.
Make sure you get 5.7 not 8.0 version of the zip file and extract all of the zip.
Dont worry about different versions. Go to edit-Preference-administration- (careful here. go to mysql dump.exe that is found in xampp folder not mysql folder.) example of path should be like C:\xampp\mysql\bin\mysqldump.exe. copy the path and paste in .path to mysqldump Tool.
After installing mysql 5.7 it comes with all the dumptools and stuff so visit
C:\Program Files\MySQL\MySQL Server 5.7\bin\
from
Edit > Preferences > Administration > path to dump tool
and select your sql dump tool
note: same apply for any version of sql just navigate and get the dump tool for that version.
I did an upgrade of Xampp to version 1.8.3-1
In phpMyAdmin, I can see my databases and the tables in them on the list on the left side.
But if I click any of my tables, I get and error #1146 table doesn't exist.
It is probably some kind of user access issue. But I haven't changed anything. I'm logging as root/no pw on mysql.
any idea?
thanks,
Benoit
If you changed the version of XAMPP you also chnaged the version of MySQL.
A straight copy of databases will probably not work.
You either need to backup under the old version and restore into the new version or use the mysql_upgrade processor.
Look up usage of mysql upgrade here mysql doc
You will need to find the page relating to the from-version and to-version of MySQL. It may even be required to go via a number of other versions of MySQL. So the backup and restore option os a lot easier.
Simple upgradation wont help, Following two steps will help you out:
Before upgrade , Go to the directory xampp/mysql/data ( or whatever is relevant to your OS) , and copy all the files starting with word ib, like ib_logfil0 etc. and paste to the upgraded version after upgrade.
Go to mysql command line, and run this command:
mysql_upgrade
I need to adapt our testing server to our production one that is stored on Aruba.
Aruba use MySql 4.0.30 but I can't find them nowhere!
Anybody know where can I find it ? or anybody has the installer stored anywhere?
Davide
According to http://lists.mysql.com/mysql/210800 (an email from a MySQL employee) this is a non-public release for customers who are too inflexible to upgrade. It says you can pay for "extended support" to get it.
Here for you source: http://mirror.provenscaling.com/mysql/community/source/4.0/mysql-4.0.30.tar.gz
Binaries only there for 4.1: http://mirror.provenscaling.com/mysql/community/binaries/4.1/
MySQL does not require much installation steps like most windows software.
Just copy the mysql dir and the mysql data dir from the production environment to your local machine and start mysqld.exe (does not need to be run as a service) from the bin directory with:
mysqld.exe --defaults-file="C:\path\to\my.ini" MySQL
If it does not start, you most likely tweak some path entries in your my.ini.
Or you can install the latest 4.x Server you find and replace the binaries and data files with the ones you get from production. That should totally do it.
Is there any nice command line MySQL client for windows? I mean a single exe that allows connecting and running a sample query. I've googled and only could find big graphical environments like toad or mysql workbench. I need only a simple command line tool, where can I download sth like this?
EDIT: I don't want to install the whole MySQL package on my PC. I know it's inside the mysql package but how do I download only this cmd line client. Because i don't need anything else.
When you go to the MySQL download page, choose the platform "Microsoft Windows". Then download the "Windows (x86, xx-bit), ZIP Archive" (be sure to select the one with size over 140M.
The binaries will be in the "bin" folder.
I understand that this is not just the client binaries, but at least you don't have to install and setup the entire server.
mysql.exe can do just that....
To connect,
mysql -u root -p (press enter)
It should prompt you to enter root password (u = username, p = password)
Then you can use SQL database commands to do pretty much anything....
You can choose only install the client during server install. The website only offers to let you download the full installer (grab whatever version you want from http://www.mysql.com/downloads/mysql/).
In the install wizard, when prompted for installation type (typical, minimal, custom), choose 'Custom'. On the next screen, select to NOT install the server, and proceed with the rest of the install as normal.
When you're done, you should see just the relevant client programs (mysql, mysqldump, etc) in C:\Program Files\MySQL..\bin
Its pretty simple. I saved the mysql community server in my D:\ drive. Hence this is how i did it.
Goto D:\mysql-5.7.18-winx64\bin and in the address bar type cmd and press enter, so command prompt will open. Now if you're using it for the first time type as mysql -u root -ppress enter. Then it will ask for password, again press enter. Thats it you are connected to the mysql server.
Before this make sure wamp or xampp any of the local server is running because i couldn't able to connect to mysql wihthout xampp running.
Happy Coding.
You can also download MySql workbench (31Mo) which includes mysql.exe and mysqldump.exe.
I successfully tested this when i had to run Perl scripts using DBD:MySql module to run SQL statements against a distant MySql db.
You can access mySQL in command line just by typing:
C:\www\mysql\bin> mysql -u root -p
After which you can type sql commands normally such as:
mysql> SHOW DATABASES;
Here, I am assuming you mySQL installation directory is C:\www\mysql.
I have similar requirement where I need a MySQL client but not server (running in a virtual machine and don't want any additional overhead) and for me the easiest thing was to install MySQL community server taking typical installation options but NOT configure the server, so it never starts, never runs. Added C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin to system path environment variable and I'm able to use the MySQL command line client mssql.exe and mysqladmin.exe programs.
If you are looking for tools like the the mysql and mysqldump command line client for Windows for versions around mysql Ver 14.14 Distrib 5.6.13, for Win32 (x86) it seems to be in HOMEDRIVE:\Program Files (x86)\MySQL\MySQL Workbench version
This directory is also not placed in the path by default so you will need to add it to your PATH environment variable before you can easily run it from the command prompt.
Also, there is a mysql utilities console but it does not work for my needs. Below is a list of the capabilities on the mysql utilities console in case it works for you:
Utility Description
---------------- ---------------------------------------------------------
mysqlauditadmin audit log maintenance utility
mysqlauditgrep audit log search utility
mysqldbcompare compare databases for consistency
mysqldbcopy copy databases from one server to another
mysqldbexport export metadata and data from databases
mysqldbimport import metadata and data from files
mysqldiff compare object definitions among objects where the
difference is how db1.obj1 differs from db2.obj2
mysqldiskusage show disk usage for databases
mysqlfailover automatic replication health monitoring and failover
mysqlfrm show CREATE TABLE from .frm files
mysqlindexcheck check for duplicate or redundant indexes
mysqlmetagrep search metadata
mysqlprocgrep search process information
mysqlreplicate establish replication with a master
mysqlrpladmin administration utility for MySQL replication
mysqlrplcheck check replication
mysqlrplshow show slaves attached to a master
mysqlserverclone start another instance of a running server
mysqlserverinfo show server information
mysqluserclone clone a MySQL user account to one or more new users
mysql.exe is included in mysql package. You don't have to install anything additionally.
download the mysql-5.0.23-win32.zip (this is the smallest possible one) from archived versions in mysql.com website
cut and paste the installation in c drive as mysql folder
then install then follow instructions as per this page:
https://cyleft.wordpress.com/2008/07/20/fixing-mysql-service-could-not-start-1067-errors/
For Windows users:
1.Install the full version of MYSQL
2.On the Windows 10 start button click on search and type in MySQL
3. Select the MYSQL Command Line Client 5.5 (I am using version 5.5)
4. go ahead and run your sql queries/
5. to exit type \q or quit