@@ -286,7 +286,7 @@ insert the following information.
286286
287287 [cloudstack]
288288 name=cloudstack
289- baseurl=http://download.cloudstack.org/centos/$releasev /|version |/
289+ baseurl=http://download.cloudstack.org/centos/$releasever /|version |/
290290 enabled=1
291291 gpgcheck=0
292292
@@ -374,7 +374,8 @@ Database Installation and Configuration
374374We'll start with installing MySQL and configuring some options to ensure it
375375runs well with CloudStack.
376376
377- First, as CentOS 7 no longer provides the MySQL binaries, we need to add a repository:
377+ First, as CentOS 7 no longer provides the MySQL binaries, we need to add a MySQL community repository,
378+ that will provide MySQL Server (and the Python MySQL connector later) :
378379
379380.. parsed-literal ::
380381 # wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
@@ -420,39 +421,17 @@ start on boot as follows:
420421 # systemctl start mysqld
421422
422423
423- MySQL connector Installation
424+ MySQL Connector Installation
424425~~~~~~~~~~~~~~~~~~~~~~~~~~~~
425426
426- Previously, we used to install Python and Java MySQL connectors using the official MySQL packages repository.
427- Due to the version changes and introduced incompatibility in versions 8.x of those packages,
428- it's advised to disable installing these packages from the MySQL repository (which we previously added)
429- and install older versions instead.
430-
431- Edit the file ``/etc/yum.repos.d/mysql-community.repo `` to add the line
432- "exclude=mysql-connector-python,mysql-connector-java" under the ``[mysql-connectors-community] ``
433- section of the repo file, so that it looks similar to the below:
434-
435- .. parsed-literal ::
436-
437- [mysql-connectors-community]
438- name=MySQL Connectors Community
439- baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
440- enabled=1
441- gpgcheck=1
442- gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
443- **exclude=mysql-connector-python,mysql-connector-java **
444-
445- We'll proceed with installing ``mysql-connector-java `` from the Base CentOS repo,
446- while the ``mysql-connector-python `` will be installed from the Epel repo:
427+ Install Python MySQL connector from the MySQL community repository (which we've added previously):
447428
448429.. parsed-literal ::
449430
450- # yum -y install epel-release
451- # yum -y install mysql-connector-java mysql-connector-python
431+ # yum -y install mysql-connector-python
452432
453- Please ensure that the installed version are older than 8.x (i.e. the current
454- mysql-connector-java version from Epel is 1.1.6, while the mysql-connector-python
455- version is 5.1.25)
433+ Please note that the previously required ``mysql-connector-java `` library is now bundled with CloudStack
434+ Management server and is no more required to be installed separately.
456435
457436Installation
458437~~~~~~~~~~~~
@@ -464,6 +443,16 @@ following command:
464443
465444 # yum -y install cloudstack-management
466445
446+ CloudStack |version | requires Java 11 JRE. Installing the management server
447+ will automatically install Java 11, but it's good to explicitly confirm that the Java 11
448+ is the selected/active one (in case you had a previous Java version already installed):
449+
450+ .. parsed-literal ::
451+
452+ $ alternatives --config java
453+
454+ Make sure that Java 11 is the chosen one.
455+
467456With the application itself installed we can now setup the database, we'll do
468457that with the following command and options:
469458
0 commit comments