Upgrading from 3.0 to 3.2 - mysql

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.

Related

How to install specific of MySQL using apt package manager

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

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.

How to install mysqlbackup?

I would like to use mysqlbackup to do incremental backups. However I can't figure out how to install it.
I have mysql-server installed. The documentation (http://dev.mysql.com/doc/mysql-enterprise-backup/3.7/en/mysqlbackup.incremental.html) seems to suggest it should already be installed but it's not. I'm running mysql on ubuntu.
Mysqlbackup is part of the MySQL Enterprise Backup:
When using the MySQL Enterprise Backup product, you primarily work with the mysqlbackup command.
Enterprise Backup, on the otherhand, is part of the MySQL Enterprise Edition which is available from Oracle store.
sudo apt-get install automysqlbackup
If you use linux.First u can download the install soft from web.
e.g. meb_xxxx.rpm.
Then run the command: rpm -ivh meb_xxxx.rpm
The MEB will install in the path /opt/mysql/meb_xxxx default.
Then u can use the mysqlbackup commande in the ./bin/ directory.
You're in luck, someone recently wrote a comprehensive writeup of how to install automysqlbackup on Ubuntu.
https://gist.github.com/janikvonrotz/9488132
They use a different approach to installing it - not using apt-get, but downloading the source and running the install shell script. I hope this works for you, good luck!

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.

Installing tomcat 6 and mysql server on ubuntu ec2 instance

I have created an instance of ubuntu 10.04 lucid lynx on amazon ec2 cloud. Now I need to configure to run my web application which runs of java servlet and mysql 5.1. Since I am novice or newbie to this environment I need some help or reference material to do it. If you know such links or tutorial kindly let me know.
Thanks a ton
sudo apt-get install mysql-server tomcat6
That's really as complicated as it gets. Depending on how you do your webapp deployment, you'll want to install tomcat6-admin
sudo apt-get install tomcat6-admin
Config files can be found in
/etc/mysql
/etc/tomcat6
/etc/default/tomcat6.
Start and stop servers using
/etc/init.d/tomcat6 start|stop
/etc/init.d/mysql start|stop