install mysql without having internet nor cd/dvd iso on redhat - mysql

I want to install mysql server on a remote server but I haven't internet access and I haven't cd/dvd iso. Is it possible to download all mysql repository locally?
Actually if I execute
yum install mysql*
, I have this error :
http://repo.mysql.com/yum/mysql-connectors-community/el/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'repo.mysql.com'" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: mysql-connectors-community. Please verify its path and try again
Does anyone have a solution?
Thanks.

Download the rpm of mysql and install it
http://dev.mysql.com/doc/refman/5.7/en/linux-installation-rpm.html

Download this package ... if use redhat7 linux
mariadb-5.5.44-2.el7.x86_64
install package this command line
#rpm -ivh mariadb-5.5.44-2.el7.x86_64
i think this issue solve

Related

Library not loaded: libssl.1.1.dylib (LoadError) when trying to run rails server and connect to mysql

Recently I updated my MacOS to Monterey 12.3 which included updates for xcode.
After that I am not able to run the rails application that I have been working on. I keep getting this error when I try to spin up the server.
I have tried installing and removing mysql different ways. Both using a brew install and DMG file from mysql website.
I am able to access the database instance through my command line but I think they issue is that it I can't connect from application. Anyone else having similar issues?
here is the full error
/Users/gus/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.6/lib/active_support/dependencies.rb:324:in `require': dlopen(/Users/gus/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle, 0x0009): Library not loaded: libssl.1.1.dylib (LoadError)
Referenced from: /Users/gus/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle
Reason: tried: 'libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file), '/Users/gus/gus_project/Gus2021/libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file) - /Users/gus/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle
If anyone runs into this problem, this is what solved my issue.
paths to openssl needed to be updated.
gem install mysql2 -- --with-ldflags=-L/opt/homebrew/opt/openssl#1.1/lib --with-cppflags=-I/opt/homebrew/opt/openssl#1.1/include
bundle install
Obviously this is for openssl install with brew install version 1.1
I was able to get it working with this:
brew install openssl
bundle config build.mysql2 --
--with-ldflags=-L/opt/homebrew/opt/openssl#1.1/lib
--with-cppflags=-I/opt/homebrew/opt/openssl#1.1/include
brew install openssl#1.1
Do all the export path things, and make sure to link openssl#1.1
brew link openssl#1.1 --force
I had similar issue with postgresql, which raises error while running psql -d database:
Library not loaded: '/opt/homebrew/opt/openssl#1.1/lib/libssl.1.1.dylib'
In my case which I have openssl#3 and openssl# the solution is:
brew install openssl#1.1
brew link openssl#1.1 --force
Then reinstall postgresql with homebrew.
I also had my zshrc exporting the following ENV variable though I'm not quite sure if it's related:
export PATH="/opt/homebrew/opt/openssl#1.1/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/openssl#1.1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl#1.1/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl#1.1/lib/pkgconfig"
For someone who runs into the same issue as mine!

Error downloading and installing Java JDK in CentOS (FIWARE)

I am trying to configure Cygnus in my FIWARE instance. Following the readthedocs tutorial I execute the following command:
yum install java-1.7.0-openjdk-devel
And the following error is listed:
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
  *base: mirror.gadix.com
  *epel: mirror.airenetworks.es
  *extras: mirror.gadix.com
  *updates: mirror.airenetworks.es
http://repositories.lab.fiware.org/repo/rpm/6/repodata/repomd.xml:
[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Can not retrieve repository metadata (repomd.xml) for repository: fiware. Please verify your path and try again
Anyone have any idea what it can be and how to solve it? I'm new to Linux environment.
It is working fine for me, please refer to this answer to clean the metadata and try installing again.
RHEL documentation mentions similar commands for OpenJdk devel installation.
or run the following commands and try installing it again:
yum clean all
yum makecache
yum update
Java version was changes in the past and newest Cygnus version (1.12.0 by the time being) uses Java 1.8, so probably you should run:
yum install java-1.8.0-openjdk-devel
I'd recommend to have a look to the RUN statement in Dockerfile. The same procedure used to build the docker container can be done to do local installations of Cygnus.

unable to install percona mysql on linux centos 7 version

When we try to install percona MySQL using binary installation we are getting error as follows:
./mysql_install_db: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
[mysql#unvacp004 bin]$ ./mysql_install_db --basedir=/fs0/mysql/product/5.7.20/bin --defaults-file=/fs0/mysql/instance/dddd/conf/my.cnf --ledir=/fs0/mysql/product/5.7.20/bin/ --user=mysql
Have you tried the solution here?
https://bugs.launchpad.net/percona-server/+bug/1453395
It seems there are different tarballs which have different SSL library dependencies.
You probably use the wrong one.
Also make sure you have the libssl1.0.0 libssl-dev packages installed. This is for Ubuntu, for RHEL systems the packages might be called differently.

Configure ejabberd with Mysql , Error p1_mysql.app not found

I am trying to configure ejabberd with mysql database. After changes into the yml file i got this error while starting node.
2017-01-09 13:07:27.386 [critical] <0.38.0>#ejabberd:exit_or_halt:133 failed to start application 'p1_mysql': {error,
{"no such file or directory",
"p1_mysql.app"}}
Searching for solutions encountered with a step to hit './configure'
But i cannot locate the directory.
Tried it in /var/lib/ejabberd as well. says "not found"
Installed on Ubuntu using apt-get install ejabberd
How do i hit configure to do the needful.
If you're building from source, you should enable mysql support via configure script, e.g.
$ ./autogen.sh # Only needed if building directly from github repo
$ ./configure --enable-mysql
$ make

Installing sphinx on Dreamhost

I'm following this tutorial: http://hughevans.net/2009/03/10/thinking-sphinx-dreamhost
I'm run into an issue when I run:
./configure --prefix=$HOME/local/ --exec-prefix=$HOME/local/
I get an error: "cannot find MySQL include files."
I've checked and cant find mysql_config, so I'm guessing the mysql-devel package isn't installed.
My next step is to install the mysql-devel package from source, but I'm thinking that I may be missing something.
Has anyone found a solution for this issue?
(I'm using a VPS)
My next step is to install the mysql-devel package from source
Why from source?
Suggest just using a package manager to install the package.
I solved my problem by using a different user with root access.
With that user I installed sphinx with APT.
sudo apt-get install sphinxsearch