How to install specific of MySQL using apt package manager - mysql

I want to install a specific version of MySQL on my Ubuntu machine. Is there a way to install it using the package manager 'apt' or 'apt-get'?
In a normal installation, I'm getting MySQL 5.6 and when I try with MySQL documentation for MySQL 8, it installs version 8.0.25.
I looked into installing specific version of a package using 'package=version' in ubuntu with this Link
But, is that possible in the case of MySQL. If possible, where can I get the available version list? I want to install MySQL version 8.0.21.

To install a specific version, we have to use Archives
Download version 8.0.21 based on your system architecture from the archives
To unpack it, use this command with root access
tar -xvf mysql-server_MVER-DVER_CPU.deb-bundle.tar
You may need to install the libaio library if it is not already present on your system:
sudo apt-get install libaio1
For a basic installation of the MySQL server, install the database common files package, the client package, the client metapackage, the server package, and the server metapackage (in that order); you can do that with a single command:
sudo dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb
For more details regarding installing and setup visit : MySQL installation guide

Related

Upgrading from 3.0 to 3.2

I'm tying to upgrade the Zabbix Server from 3.0 to 3.2 on Ubuntu 16.04 that I didn't install by myself and I don't know if it was istalled form repository or sources. I've done all the necessary backups and when I'm tying to execute this command
sudo apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent
I get this message
Skipping zabbix-server-mysql, it is not installed and only upgrades
are requested.
I'm using MySQL with a working DB for Zabbix. Can the Zabbix Server be installd without the zabbix-server-mysql package and still use the MySQL database? If yes, does it mean that the previous user installed it from sources and not from the repository?
I didn't find similar problems searching the net so maybe someone here can help me.
dpkg-query -l 'zabbix*'
You'll see if Zabbix has been installed through the packages.
According to the error message you have, I would say definitely no.
Do a typical install through the packages, re-enter the login/pass of your MySQL DB and it will upgrade it. Don't forget to make a backup first, just in case something goes wrong.

Install mysql driver everything I turn back on my computer

Every time when I turn back on my computer (Not when my computer is sleeping, but after I did a soft shutdown) I need to install the MySQL driver using npm.
I install the MySQL driver using the following code
npm install -g mysql
Also, what is -g, I use because if I were just to use npm install mysql, an error would show up, and then I found that I could enter -g, and after I did it does install mysql and I can use it. This might the problem to why I have to install the mysql driver every time I turn on my computer. If it is, can somebody teach me how to install the mysql driver without any errors.

Postfix install fails. MySQL conflict

I'm using CentOS 6, and trying to create a virtual mirror on a new server of an old one (which someone else setup). As much as possible, I want keep everything with the same version, but I've started from scratch and am documenting everything. By default, yum would install MySQL 5.1.73. I downloaded MySQL community v5.1.69 and installed it manually. This required installing a "shared compatibility" package of MySQL v5.1.69 first, and removing mysql-libs.x86_64. With that in place, I successfully mirrored MySQL.
Now, I'm trying to install Postfix. Yum wants to pull version 2.6.6-6. This fails because it requires a dependency that it attempts to install as well: mysql-libs.x86_64 v.5.1.73-5. It splits out a pile of errors messages which are all similar to this:
Transaction Check Error:
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-community-5.1.69-1.rhel5.x86_64
My old server is using postfix v2.6.6-2, which is apparently compatible with MySQL v5.1.69. I found the rpm for that version of postfix. It doesn't install, because it requires mysql-libs. I can't install mysql-libs v.5.1.69, because it conflicts with the MySQL community edition (also 5.1.69) that I installed. I tried to install the MySQL 5.1.73 "shared compatibility" package, but that conflicts with MySQL community too.
I'm going in circles. Is the only way to break this chain to uninstall MySQL community? Must I just use the v5.1.73 default, and the Postfix 2.6.6-6? I don't expect any real problems, but I'm going to end up with slightly different versions of MySQL and Postfix then I am trying hard to mirror.
I gave up, uninstalled all the MySQL community packages, and just installed the out of the box yum MySQL and Postfix. That works, but I now have different versions of this software on these two servers as a result.

Install Navicat on Linux Ubuntu 12.04

How do I install Navicat on Ubuntu Desktop 12.04?
I have just configured a new Ubuntu 12.04. Because I'm not so familiar with the command line, I prefer to use Ubuntu Desktop so that I can have a GUI. Now I need to install a front-end to connect with MySQL.
I prefer to use Navicat in a MAC environment, so I was hoping to install Navicat on the Ubuntu machine. I downloaded a Linux copy of Navicat for MySQL from here:
http://www.navicat.com/download/navicat-for-mysql
The problem I am having is that I don't know how to install the program after it has been downloaded. There is a navicat.exe file in the navicat folder, but that seems to be for a DOS/Windows environment.
I just can't figure out how to install Navicat onto Ubuntu Desktop 12.04. Anyone have any ideas? Thanks.
You need to download Linux version of Navicat
And per online manual
Installation for Download Version
Open or Save the gzip file.
Extract the file into anywhere you wish.
Open the unziped folder.
Double-click start_navicat to start your
Navicat. Please note that it would take a while for starting-up.
A Registration screen will then be popup, key in the Registration Key
(16 digit) and click Activate to online activate the key.
UPDATE:
if you're on 64-bit box install all 32bit libraries
sudo apt-get install ia32-libs
install wine runtime environment
sudo apt-get install wine

Perl: Is it possible to install Mysql module without having Mysql installation?

I'm trying to install the Mysql module on my development machine but it seems to want a local Mysql installation before it will install.
Is there a work around?
I don't need or want a local installation of Mysql, I'm querying a network machine with the installation.
DBD::mysql is a wrapper around the MySQL client libraries. You will at least need to install a client, just like you would need to a client to connect to a remove MySQL server anyway.
You don't specify what system you're on or how you are trying to install DBD::mysql.
You'll need the client libraries (and if you're installing from CPAN - the source of the client libraries) but you should not need MySQL Server. If on a linux the mysql-server package is a dependency of DBD::mysql, it would be a bug.