could not parse version number from mysqldump.exe - database

I get an error "could not parse version number from mysqldump.exe: 'cmd.exe' is not recognized as an internal or external command, operable program or batch file" whenever I'm trying to export a database in mySQL. I think I got this after changing some of my environment variables in my OS.

In my case with MySql Workbench 6.3 on Windows 7 x64, the error was due to bad python code. The following was failing:
C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\wb_admin_control.py
Line 114: s = re.match(".*Distrib ([\d.a-z]+).*", output)
I fixed it and now it works. Hooray for python!
Being an incredibly lazy/busy person, I simply hard-coded the return values to be 5.7.8, which is the version I am currently running.

Are you referring to MysqlWorkbench? This occurs when you upgrade to Workbench 5.2.44, and is due to a bug - they bundled the wrong version of mysqldump.exe. A version 5.2.45 has silently appeared and the bug is fixed in it.

Related

Could not Load timescaledb-1.6.0.dll - Not a Valid Win32 Application

I've come across an issue when attempting to load timescaledb using PostgreSQL v10.11... Upon executing the following command:
CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;
I'm greeted with the following error:
ERROR: could not load library "<postgresfolder>/lib/timescaledb-1.6.0.dll": %1 is not a valid Win32 application.
postgresfolder = The path to my postgres installation location.
I've attempted this with PostgreSQL v11.6 aswell, with the same outcome. I don't believe it to be a dependency issue (Visual Studio C++ Redist. 2015) as I meet all the prerequisites listed # https://docs.timescale.com/latest/getting-started/installation/windows/installation-windows.
Any help would be greatly appreciated!
(EDIT): The installation is being performed on Windows 10, 64bit.
I got this problem due to ssleay32 and libeay32 dlls. Get binaries from https://get.enterprisedb.com/postgresql/postgresql-11.4-1-windows-x64-binaries.zip and copy them from postgresql-11.4-1-windows-x64-binaries/bin into your /bin folder. If they did not exist, still copy and keep them there.
Also, it looks like timescaledb only works with 11.4 version if you wanna stick with 11.

jmxPermissions.vbs sets no permissions

Im trying to start virgo server with vsphere sdk version 6.7 in my local machine and getting this error.
λ startup.bat
WARNING: jmxPermissions.vbs did not update the permissions of \vSphere Client SDK\html-client-sdk-6.7.0-8170180\vsphere-ui\server\configuration\org.eclipse.virgo.kernel.jmxremote.access.properties. Check the file has the correct permissions.
'Client' is not recognized as an internal or external command,
operable program or batch file.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Error: Could not find or load main class Client
The issue is that you have deployed the SDK on a Windows path with spaces - startup.bat thinks " Client SDK\html-client-sdk-6.7.0-8170180\vsphere-ui\server\" is a command line argument.
The simple fix is to move the SDK to a location without any spaces.
Kudos goes to my colleague Alex Marinov (https://www.linkedin.com/in/aleksandar-marinov/) for spotting this.

Orafce install in postgresql 9.5

I am new to programmer world so i want to learn so many things, and about what i want to ask, can i install orafce in postgresql? I mean all the tutorial always show use BigSql but iam using from enterprise DB. I am already try take orafce.dll from bigsql but it can't read because not specified procedure.
ERROR: could not load library "C:/Program Files/PostgreSQL/9.5/lib/orafce.dll": The specified procedure could not be found.
and i already try from other source but still got some error
ERROR: could not find function "plvlex_tokens" in file "C:/Program Files/PostgreSQL/9.5/lib/orafce.dll"
It was a bug in Orafce windows build. Should be fixed by last build.

Installing Oracle DataModeler assistance

I would like to download and install the Oracle DataModeler
But im stuck at the window that says:
"please specify the path to the java jdk home:_________"
What do i do?
Help would be greatly appreciated
You tell it where Java is installed. SQL Developer Data Modeler is a java application and can't run without Java.
If you're on Windows, you can download the package that includes the JDK. If you're not on Windows, install Java 8 (JDK), and then run SQL Developer. If it doesn't see Java, it will ask for the path. Give it the path from your install.
When I installed Datamodeler, the first time I launched the software it asked me for a java path. On my machine this was /usr/lib/jvm/java-1.8.0-openjdk-amd64. If you are running on a linux distro, there should be an opt subdirectory with a configuration file that you can edit manually:
/opt/datamodeler/datamodeler/bin/datamodeler.conf
try changing the last line of the file from
SetJavaHome ../../jdk
to
SetJavaHome /path/to/your/java (whatever your java path is)
I'm still having issues -- but this might work for you.

Export Data from mysql Workbench 6.0

I'm trying to export my database, using MySQL Workbench 6.0 on Windows, to send to my db instance in Amazon RDS, but i'm getting this error:
Operation failed with exitcode 7
11:34:40 Dumping clubbin (taxicompanies)
Running: "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqldump.exe"
-defaults-extra- file="c:\users\selene\appdata\local\temp\tmp6o0hno.cnf"
--max_allowed_packet=1G --delayed- insert=FALSE --host=localhost --user=root
--port=3306 --default-character-set=utf8 "clubbin" "taxicompanies"
mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE'
Does anybody have any idea that can help me?
mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE'
This error occurs on various systems and can be temporarily fixed by:
Going to the appropriate directory depending on the system:
a) Windows: C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules (32-bit installation on x64 systems: C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules)
b) Mac OS X: Applications/MYSQLWorkbench.app/Contents/Resources/plugins - right click on the app and select Show Package contents to get inside the app (thanks to Bradley Flood)
c) Linux Ubuntu: /usr/lib/mysql-workbench/modules (thanks to Alessandro Lopes)
Open file wb_admin_export_options.py
Find line "delayed-insert":["Write INSERT DELAYED statements rather than ...
Insert # at the begin of this line to comment it out
Save file and restart Workbench.
Tested on Windows 7 x64, MySQL 5.6.27 (MyISAM) & Workbench 6.3.5 x64.
Tested on OSX Yosemite 10.10.4, MySQL 5.5.27 (MyISAM), Workbench 6.3.5 build 201 CE x64.
This worked for me.
Edit the file C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\wb_admin_export_options.py (make sure you open your editor as administrator)
find the line:
delayed-insert":["Write INSERT DELAYED statements rather than INSERT statements.","FALSE", "BOOL", ("5.0.0", "5.7.0")],
and put a hash “#” at the beginning of the line so that it looks like this:
# delayed-insert":["Write INSERT DELAYED statements rather than INSERT statements.","FALSE", "BOOL", ("5.0.0", "5.7.0")],
This will comment the line out so that Workbench won’t use this statement.
Save and close the file.
Start Workbench and try again.
Reference http://dannytsang.co.uk/mysql-workbench-error-code-7/
On Linux Ubuntu/Mint:
The config file is located at :
/usr/lib/mysql-workbench/modules/wb_admin_export_options.py
As described by c4pricorn, simply comment the line "delayed-insert":["Write INSERT DELAYED statements rather than...
And restart workbench.
Delayed inserts where deprecated in 5.6 and are converted to normal inserts in 5.7 (see also http://dev.mysql.com/doc/refman/5.7/en/insert-delayed.html). I wonder why mysqldump reports an error on this. Regardless, MySQL Workbench must be adjusted to no use delayed-insert for dumps. Can you please file a bug report at http://bugs.mysql.com to bring this on the agenta for MySQL Workbench?
In CentOS 7,
Open file /usr/lib64/mysql-workbench/modules/wb_admin_export_options.py
Find line "delayed-insert":["Write INSERT DELAYED statements rather than ...
Insert # at the begin of this line to comment it out
Save file and restart Workbench.
As highlighted at an earlier post, by putting a # at the delayed-insert line in wb_admin_export_options.py does solves the problem.What i like to add is that when i tried to edit it in notepad and Pythonwin,i encountered the admin rights issue.They don't let me save the file after my edit.I finally work around it by editing and saving it in notepad++.One can download it from here https://notepad-plus-plus.org/
Removing delayed-insert line in wb_admin_export_options.py solves the problem. You need to get admin rights to modify the file.
Nonetheless consider that your MySQL database might have been not properly upgraded before.
Be careful on editor: on Win7 64 notepad doesn't work on this modification.
Notepad will present a single line, use an editor with crlf.
I had this error until I upgraded to the latest version. Currently 8.0.15. That fixed it on my Mac.

Resources