I'm triing to install the MySQL enterprise plugin openssl_udf. I need it for generating RSA keys and RSA encryption. I got the openssl_udf.dll from Oracle and tried the following codes with failures.
INSTALL PLUGIN openssl_udf SONAME 'openssl_udf.dll'
Failure:
Error Code: 1126. Can't open shared library 'C:\Program Files\MySQL\MySQL Server 5.7\lib\plugin\openssl_udf.dll'
And:
CREATE FUNCTION asymmetric_decrypt RETURNS STRING
SONAME 'openssl_udf.dll';
Failure:
Error Code: 1126. Can't open shared library 'openssl_udf.dll' (errno: 193 )
Does someone know how to use it?
Sources:
https://dev.mysql.com/doc/refman/5.7/en/install-plugin.html
http://dev.mysql.com/doc/refman/5.7/en/enterprise-encryption-installation.html
So it was simple after all.
After deinstalling MySQL Server (Community) the first time, I didn't delete ALL MySQL files and folders manually, so that the Enterprise installer must have installed the Community distribution again. After deinstalling and removing all files and than reinstalling, everything works fine.
Related
I am trying to install MySQL Server (on Windows) using MYSQL community edition v8.0.12 in silent mode.
I first run
msiexec /i "mysql-installer-community-8.0.12.0.msi" /qn
Then
MySQLInstallerConsole community install -silent server;8.0.12;x64:*:type=config;
openfirewall=true;generallog=true;binlog=true;serverid=3306;enable_tcpip=true;port=3306;
rootpasswd=Unkn0wN;installdir="C:\MySQL\MySQL Server 8.0":type=user;username=foo;
password=bar;role=DBManager
MySQLInstallerConsole.exe execution log:
=================== Start Initialization ===================
MySQL Installer is running in Community mode
Attempting to update manifest.
Initializing product requirements
Loading product catalog
Checking for product catalog snippets
Checking for product packages in the bundle
Categorizing product catalog
Finding all installed packages.
Your product catalog was last updated at 9/16/2018 5:20:01 PM
=================== End Initialization ===================
MySQL Server 8.0.12 - An authentication plugin must be specified for new users.
The error is: "MySQL Server 8.0.12 - An authentication plugin must be specified for new users."
Oracle doesn't seem to have updated the MySQLInstallerConsole reference parameters on its website, does anyone know how i can specify an auth plugin for MySQLInstallerConsole ?
For now i am just working around it by not creating user foo.
MySQLInstallerConsole community install -silent server;8.0.12;x64:*:type=config;
openfirewall=true;generallog=true;binlog=true;serverid=3306;enable_tcpip=true;port=3306;
rootpasswd=Unkn0wN;installdir="C:\MySQL\MySQL Server 8.0";datadir="C:\MySQL\data"
I discovered that using the auth_plugin setting with caching_sha2_password allowed for creating a user.
As of MySQL 8.0, caching_sha2_password is both the preferred and the default authentication plugin.
MySQLInstallerConsole community install -silent server;8.0.21;x64:*:^
type=config;openfirewall=false;generallog=true;binlog=true;^
serverid=3306;enable_tcpip=true;port=3306;rootpasswd=Unkn0wN;^
installdir="C:\MySQL\MySQL80";datadir="C:\MySQL\Data":^
type=user;username=foo;password=bar;role=DBManager;auth_plugin=caching_sha2_password
I've also been successful at installing other products like so
MySQLInstallerConsole community install -silent ^
workbench;8.0.21;x64:* ^
shell;8.0.21;x64:* ^
connector/ODBC;8.0.21;x64:* ^
connector/J;8.0.21;x86:* ^
connector/C++;8.0.21;x64:* ^
connector/NET;8.0.21;x86:*
Some references:
https://dev.mysql.com/doc/refman/8.0/en/authentication-plugins.html
https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
I have tried to install Moodle 3.5.1 on my development server (Apache 2.4.29 and MySQL v.5.7).
The installation process went smoothly: The MySQL database has been set up, all required PHP packages are installed, the system has been successfully installed, all file permissions are correct.
After the installation I only get the following error:
"Coding error detected, it must be fixed by a programmer: PHP catchable fatal error"
There are no further error messages. There are no error messages in Apache Error log or PHP log files. In the PHP ini file the display of error messages is activated.
So I can not figure out what did not work or how to fix it.
Put error_reporting(E_ALL); and ini_set('display_errors', 1); in the beggining of the script you see problem in for more debug info
Moodle 3.5 requires PHP 7
https://docs.moodle.org/35/en/PHP
Could that be your problem?
I have installed asterisk latest package and using mysql DB for realtime simulation. But in the CLI i am getting the error:
config.c:2444 find_engine: Realtime mapping for 'sippeers' found to engine 'mysql', but the engine is not available
and while executing command MODULE LOAD RES_CONFIG_MYSQL i am getting the following message.
loader.c:918 load_resource: Module 'RES_CONFIG_MYSQL' could not be loaded.
My machine is with linux mint 16. 64 bit.
If you have version <1.4 you have download asterisk-addons and compile it too
Otherwise you have do
make menuconfig
before make and select mysql addon
I have cloned the LIB_MYSQLUDF_JSON filed from github and copied the lib_mysqludf_json.so file into the /usr/local/mysql/lib/plugin directory as indicated in the instructions. When I run the command mysql> CREATE FUNCTION json_values RETURNS STRING SONAME 'lib_mysqludf_json.so'; I get the following error:
ERROR 1126 (HY000): Can't open shared library 'lib_mysqludf_json.so' (errno: 0 dlopen(/usr/local/mysql/lib/plugin/lib_mysqludf_json.so, 2): no suitable image found. Did find: /usr/local/mysql/lib/plugin/li)
I got no better results when I ran the gcc -shared -o command with respect to the lib_mysqludf_json.so and lib_mysqludf_json.c files before copying the lib_mysqludf_json.so file to the mysql plugin directory.
I have searched for results for the above error, which resulted in many hits, but nothing has yet indicated what might be the issue for me.
I am trying to run all this on a MacBook Pro with OS X Lion. Any insight would be appreciated.
Trying to install RMySQL on 64-bit Windows 7.
Using R-2.14.2 with Rtools214 and MySQL Server 5.5.
Read through several step-by-steps of RMySQL source installation.
Troubleshooting:
- Copied libmysql.dll to R-2.14.2/bin AND R-2.14.2/bin/i386.
- Copied libmysql.dll and libmysql.lib to MySQL Server 5.5\lib\opt.
- Entered MYSQL_HOME=C:\Program Files\MySQL\MySQL Server 5.5 into Renviron.site, saved to R\R-2.14.2\etc.
My instances of common problems:
Sys.getenv('MySQL_HOME')
[1] "C:\Program Files\MySQL\MySQL Server 5.5\"
install.packages('RMySQL', type = 'source')
Installing package(s) ...
...
RS-DBI.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
make: [RS-DBI.o] Error 1*
ERROR: compilation failed for package 'RMySQL'
...
I'm guessing my problem lies in the '64-bit mode...' message, but I'm not sure.
Thoughts?
I'm not sure this error message has anything to do with RMySQL, or any particular package.
On 64bit Windows, instead of the default PATH :
C:\Rtools\MinGW\bin
( gives the error sorry, unimplemented: 64-bit mode not compiled in )
you might (quite reasonably) notice the MinGW64 directory alongside and try :
C:\Rtools\MinGW64\bin
but in fact it needs to be :
C:\Rtools\gcc-4.6.3\bin
Then of course, stop and start a new DOS window to pick up the new PATH.
I had problems installing RMySQl
so I installed the package RODBC which works fine.
(make sure the MySQL driver is installed).
http://dev.mysql.com/downloads/connector/odbc/