I am running a Ubuntu 15.10.
I know it's not supported anymore but still is there a way to install mysql 5.6 on it?
I have found any post that could help me.
[UPDATE]
here is the error I get:
Like 15.10 is not supported anymore I guess the repos doesn't exist anymore...?
Err http://fr.archive.ubuntu.com/ubuntu/ wily/main libaio1 amd64 0.3.110-1
404 Not Found [IP : 194.158.119.186 80]
Err http://fr.archive.ubuntu.com/ubuntu/ wily-updates/main mysql-common all 5.6.31-0ubuntu0.15.10.1
404 Not Found [IP : 194.158.119.186 80]
Err http://fr.archive.ubuntu.com/ubuntu/ wily/main libdbi-perl amd64 1.633-1
404 Not Found [IP : 194.158.119.186 80]
Err http://fr.archive.ubuntu.com/ubuntu/ wily/main libdbd-mysql-perl amd64 4.028-2
404 Not Found [IP : 194.158.119.186 80]
Err http://fr.archive.ubuntu.com/ubuntu/ wily/main libterm-readkey-perl amd64 2.33-1
404 Not Found [IP : 194.158.119.186 80]
Err http://security.ubuntu.com/ubuntu/ wily-security/main mysql-common all 5.6.31-0ubuntu0.15.10.1
To overcome such problems easily, there is containerization technology.
If it is possible to install docker on the system, you could start a docker container with the desired version of mySQL:
mkdir /my/own/datadir
docker run -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 -d mysql:5.6
This will start an mySQL instance in a docker container with port 3306 exposed (default mySQL port), and mounts the data volume to /my/own/datadir (please change this).
Please note that there are more elegant ways to start this container, this is just an example.
See here for a docker primer: https://docs.docker.com/get-started/
See here for the official mysql images: https://hub.docker.com/_/mysql/
Install MySQL on Linux Ubuntu 15 issue the following command
sudo apt-get install mysql-server
Related
The company I am working uses an older stack, and I need to install MySQL 5.7 on my Ubuntu 22.04 LTS to work on some projects locally. Does anyone knows how to do this? I just can't find anything besides installing it on Ubuntu 20.04 or lower.
download:
wget https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb
dpkg -i mysql-apt-config_0.8.12-1_all.deb
select this options:
Bionic -> MySQL Server and Cluster -> mysql-5.7 -> ok
add key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
apt-get update
check available mysql versions:
apt-cache policy mysql-server
mysql-server:
Installed: (none)
Candidate: 8.0.27-0ubuntu0.20.04.1
Version table:
8.0.27-0ubuntu0.20.04.1 500
500 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://ru.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
8.0.19-0ubuntu5 500
500 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 Packages
5.7.37-1ubuntu18.04 500
500 http://repo.mysql.com/apt/ubuntu bionic/mysql-5.7 amd64 Packages
and install it:
apt install -f mysql-client=5.7* mysql-community-server=5.7* mysql-server=5.7*
Done
I have fixed this issue for me with a small trick.What we actually need to do is edit our /etc/apt/sources.list with the source.list available in Ubuntu 20.4. eg. you will get an entry in ubuntu 22 "deb http://in.archive.ubuntu.com/ubuntu/ jammy main restricted"
so just replace jammy by bionic in all places in /etc/apt/sources.list then save and try apt update after then just simply try to install myslq sudo apt install -fmysql-server=5.7* can use this command and now you can able to install mysql successfully.
Once you are installed and mysql is up and running just make sure to revert the /etc/apt/sources.list file.
Reason for doing this is in Ubuntu 22.04 it is not bale to install all required dependencies for mysql5.7 so by editing source.list we allow to install all req dependencies.
Note: Don't use upgrade in while doing this all and make sure you revert the source.list file after myslq installed and plz mark mysql on hold for upgrade because whenever you run an upgrade command it will upgrade the mysql version to 8 from 5.
Hope this work for you. Thanks
sudo apt-get install libsqlite3-dev libmysqlclient-dev -y
Output:
After this operation, 10.5 MB of additional disk space will be used.
Err:1 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-0ubuntu2
Could not connect to in.archive.ubuntu.com:80 (2403:8940:ffff::f), connection timed out Could not connect to in.archive.ubuntu.com:80 (103.97.84.254), connection timed out
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib1g-dev_1.2.11.dfsg-0ubuntu2_amd64.deb Could not connect to in.archive.ubuntu.com:80 (2403:8940:ffff::f), connection timed out Could not connect to in.archive.ubuntu.com:80 (103.97.84.254), connection timed out
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Does someone know to workaround this issue
It seems like apt could not connect to the right archive. Maybe there's an option, where you can change the server to download from.Also you could try running sudo apt update or sudo apt install libsqlite3-dev libmysqlclient-de --fix-missing as suggested in the error message.
Edit:
I found out, that you can change the mirror by going to software sources (Linux Mint, maybe this also works for you)
I need LAMP on my elementaryos. I already have php, apache, and phpmyadmin.
Mysql has proven to be a problem to me. I've successfully installed mysql 5.7. Unfortunately, the people at mysql decided to add silly changes such as not being able to mysql -uroot -proot without sudo. Because of this change, I can't login via phpadmin with root.
So I've decided to just install mysql 5.6.
I've been following this guide.
Sadly, when I do apt-cache policy mysql-server, this is what I get:
mysql-server:
Installed: (none)
Candidate: 5.7.23-0ubuntu0.18.04.1
Version table:
5.7.23-0ubuntu0.18.04.1 500
500 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages
5.7.21-1ubuntu1 500
500 http://ph.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
500 http://ph.archive.ubuntu.com/ubuntu bionic/main i386 Packages
The version is 5.7. So now the guide says check /etc/apt/sources.list.d/mysql.list. But this is what I have in there:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt//ubuntu/ wily mysql-apt-config
deb http://repo.mysql.com/apt//ubuntu/ wily mysql-5.6
deb http://repo.mysql.com/apt//ubuntu/ wily mysql-tools
deb-src http://repo.mysql.com/apt//ubuntu/ wily mysql-5.6
So it's actually correct. But it's still not 5.6.
Can anybody help me out?
1.In Software & Updates/Other Software added 14.04 repository:
deb http://archive.ubuntu.com/ubuntu trusty main
2.Installed mysql client and server:
sudo apt install mysql-server-5.6
sudo apt install mysql-client-5.6
Update: Before installing 5.6, make sure that no other mysql packages are present:
dpkg -l | grep mysql - returns list of mysql packages.
Use apt-get purge <package name> to purge them.
Source: 16.04 upgrade broke mysql-server
I am beginner in installing mysql using YUM and I have looked into various forums, I don't understand why I am getting the following error.
Loaded plugins: fastestmirror, langpacks
Cannot open: mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm.
Skipping.
Nothing to do
I did further analysis by executing following commands but still it didnt work.
sudo rm -f /var/lib/rpm/__*
sudo rpm --rebuilddb -v -v
Some further details:
Linux version: Linux lptxukgcs06 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
The user which I am using has sudo priviledges.
Yum Command: sudo yum localinstall mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm
Thank you for your time.
The command for installing RPM packages is:
rpm -ivh mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm
or
sudo rpm -ivh mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm (root password required)
to uninstall, it is:
sudo rpm -e
And to see if package is installed:
rpm -q
Issue was: The .rpm file should be renamed with your linux server version number after you download from mysql website. Rename the file and execute the command: sudo yum localinstall mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm.
You can get the version from linux using: uname -a
already installed mysql-server package but it doesn't work
Package mariadb-server-3:10.1.21-3.fc25.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
[root#localhost ~]# /etc/rc
rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/ rc.d/
[root#localhost ~]# /etc/rc.d/init.d/mysqld start
-bash: /etc/rc.d/init.d/mysqld: No such file or directory
Fedora is using systemd so you should use systemctl for starting services:
systemctl start mysqld