Changes

Jump to navigation Jump to search
465 bytes added ,  21:23, 19 March 2022
no edit summary
Line 6: Line 6:  
</blockquote>
 
</blockquote>
 
__TOC__
 
__TOC__
 +
{{Note box| Mysql 5.7  support is up to 31 Oct 2023 so 8 months before SME10 EOL which is  30 June 2024.}}
 
== Description ==
 
== Description ==
   −
This contrib purpose is to help configuring mysql57 on  SME9 using software collection.
+
This contrib purpose is to help configuring mysql57 on  SME9 and above using software collection.
   −
This RPM will allow you to have 2 versions of Mysql running side by side. You will have to select the one to use in the setup of the specific application - please see "usage" below. Please note that applications and contribs like phpmyadmin etc. will as standard use the original Mysql DBM for your OS unless you change the database connection to Mysql 5.7.  
+
This RPM will allow you to have 2 or more (if also using another contrib for another sclo version) versions of MySQL running side by side. You will have to select the one to use in the setup of the specific application - please see "usage" below. Please note that applications and contribs like phpmyadmin etc. will as standard use the original Mysql DBM for your OS unless you change the database connection to Mysql 5.7.  
    
Most of configuration options are explained for mysql here : [[MySQL]] are also available for mysql57 ( except innoDB options). Only difference is to prefix mysqld and mysql.init db entry by "mysql57-".
 
Most of configuration options are explained for mysql here : [[MySQL]] are also available for mysql57 ( except innoDB options). Only difference is to prefix mysqld and mysql.init db entry by "mysql57-".
Line 16: Line 17:  
Note that default behaviour will be socket only, and if you enable networking, it will listen on 3309 locally. You then will need to open port to 3309 to access remotely. Also if you want another port you need to define mysql57-mysqld property port to whatever you want. Also remember that default mysql port is reserved to original mysql server  
 
Note that default behaviour will be socket only, and if you enable networking, it will listen on 3309 locally. You then will need to open port to 3309 to access remotely. Also if you want another port you need to define mysql57-mysqld property port to whatever you want. Also remember that default mysql port is reserved to original mysql server  
   −
this RPM will allow you to have 2 versions of mysql running!!!
     −
see also for reference: [[Software_Collections:MySQL]]  
+
See also for reference: [[Software_Collections:MySQL]]  
    
For SME9 Software collection is only available for x64 architectures.
 
For SME9 Software collection is only available for x64 architectures.
Line 30: Line 30:  
==Installation==
 
==Installation==
 
<tabs container><tab name="For SME 10">
 
<tabs container><tab name="For SME 10">
{{warning box| this is still alpha, only for testing }}
   
  yum install smeserver-extrarepositories-centos-sclo -y  
 
  yum install smeserver-extrarepositories-centos-sclo -y  
  yum install --enablerepo=smecontribs smeserver-mysql57
+
  yum install --enablerepo=smecontribs,centos-sclo-rh smeserver-mysql57
  #madatory  reconfigure and reboot
+
  source /etc/profile.d/mysql57.sh
signal-event post-upgrade ;  signal-event reboot
+
 
 +
and enjoy mysql57, no more commands nor reboot required !
 
</tab>
 
</tab>
 
<tab name="For SME 9">
 
<tab name="For SME 9">
Line 51: Line 51:  
</tab>
 
</tab>
 
</tabs>
 
</tabs>
      
== Usage ==
 
== Usage ==
Line 123: Line 122:     
To reset the password for the MySQL root account. The MySQL root user on SME Server has a random generated password which is generated during installation. You do not need to know this password to login to MySQL with root privileges on SME Server. If you might have changed the MySQL root password you can reset it like this after getting command line access as root user.
 
To reset the password for the MySQL root account. The MySQL root user on SME Server has a random generated password which is generated during installation. You do not need to know this password to login to MySQL with root privileges on SME Server. If you might have changed the MySQL root password you can reset it like this after getting command line access as root user.
 +
#SME9
 
  service mysql57-mysqld stop
 
  service mysql57-mysqld stop
 
  expand-template /root/.my.cnf
 
  expand-template /root/.my.cnf
Line 130: Line 130:  
  exit
 
  exit
 
  service mysql57-mysqld start
 
  service mysql57-mysqld start
 +
 +
#SME10
 +
systemctl stop mysql57-mysqld
 +
expand-template /root/.my.cnf
 +
expand-template /var/opt/rh/rh-mysql57/lib/misc/set.password
 +
scl enable rh-mysql57 bash
 +
/opt/rh/rh-mysql57/root/usr/libexec/mysqld --socket=/var/lib/mysql/mysql57.sock --bootstrap --user=mysql --skip-grant-tables < /var/opt/rh/rh-mysql57/lib/misc/set.password
 +
exit
 +
systemctl start mysql57-mysqld
    
=== Bugs ===
 
=== Bugs ===
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu