Installing tomcat 6 and mysql server on ubuntu ec2 instance - mysql

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

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

how to install mysql-server Ubuntu 18.04

I am using windows 10 and installed Ubuntu from the windows app store. In the terminal I type sudo apt-get install mysql-server.
I have tried multiple guides of making sure I removed all Sql installs and files that could have been installed already. The strange thing is I just downloaded Ubuntu and never had mysql on the system. I continue to get the below error.
Error displayed
Setup Explained:
I just went to the windows store and downloaded the canonical software. Unfortunately, I dont know much about this linux. I just downloaded and I can just open up the ubuntu exe. This may be the root of my problem. Its a windows app.

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.

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!

Linux - Difference between mysql-server and php5-mysql packages

Hey everyone what is the difference between the linux packages:
mysql-server and php5-mysql?
Do I need both or just one?
Thanks
You need no one if you are not a going to use development features and database.
If you are looking to start website development, install both along with Apache web server.