Koozali.org: home of the SME Server

How to upgrade MySQL.

Offline Skalviai

  • *
  • 35
  • +0/-0
How to upgrade MySQL.
« on: October 28, 2023, 04:09:48 PM »
Joomla 4 minimum requirements - mysql 5.6 or higher. SmeServer 10 comes with mysql 5.5.
How to install version 5.6 or higher?
.........

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: How to upgrade MySQL.
« Reply #1 on: October 29, 2023, 12:23:07 AM »
you simply do not.
Sme comes with mariadb 5.5. not mysql.

you can use SCLO and install along side mariadb 10.5. See the wiki for the procedure to install the contrib.

Offline Skalviai

  • *
  • 35
  • +0/-0
Re: How to upgrade MySQL.
« Reply #2 on: October 29, 2023, 08:40:33 AM »
Quote

you can use SCLO and install along side mariadb 10.5. See the wiki for the procedure to install the contrib.

We have successfully installed mariadb 10.5. How to use it in Joomla 4.

Like wordpress for example:
Quote

For Wordpress adjust the DB_HOST value in the wp-config.php file accordingly.
 define( 'DB_HOST', 'localhost:/var/lib/mysql/mariadb105.sock' );
.........

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: How to upgrade MySQL.
« Reply #3 on: October 30, 2023, 07:23:32 PM »
Quote
How to use it in Joomla 4.

Read the Joomla documentation?

By default Maria DB runs on a socket. Joomla should be able to connect using localhost.

If not you can enable a port (less safe than socket). See the wiki.

Please be VERY careful when reading other web pages. With the templating engine, SME is NOT standard so don't just go manually hacking files without knowing EXACTLY what you are doing.

Take backups before starting anything.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Skalviai

  • *
  • 35
  • +0/-0
Re: How to upgrade MySQL.
« Reply #4 on: October 30, 2023, 09:00:50 PM »
Thanks for the reply.

Then the next question.
After running the mysql command, we get MariaDB version 5.5.68.
How to change sme server settings so that the mysql command uses MariaDB version 10.5.9?
.........

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: How to upgrade MySQL.
« Reply #5 on: October 30, 2023, 09:36:19 PM »
Your question tells me you are not reading our wiki.

Please, go back and read it all, carefully. Let your eyes be your guide.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Skalviai

  • *
  • 35
  • +0/-0
Re: How to upgrade MySQL.
« Reply #6 on: October 31, 2023, 07:03:23 AM »
Your question tells me you are not reading our wiki.

Please, go back and read it all, carefully. Let your eyes be your guide.

I'm looking for a concrete answer, and your answer is "I know how to do it, but read the wiki, google, and you'll find it yourself."
.........

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: How to upgrade MySQL.
« Reply #7 on: October 31, 2023, 09:33:15 AM »
You have asked a question which has a concrete, documented answer. You just need to read.

There are also various threads here on using it.

You won't learn anything if you can't be bothered to read.

Do you think I magically acquired some knowledge? No, I went and read copiuosly, over years.

Like many of us here I have limited time which I  don't want to waste on answering questions that already have simple solution.

People here will help those who help themselves.

https://forums.koozali.org/index.php/topic,54724.0.html
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,740
  • +5/-0
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Skalviai

  • *
  • 35
  • +0/-0
Re: How to upgrade MySQL.
« Reply #9 on: October 31, 2023, 11:52:53 AM »
https://wiki.koozali.org/MySQL
https://wiki.koozali.org/Mariadb105#Configuration
https://wiki.koozali.org/Mariadb105#Usage
https://wiki.koozali.org/PHPMyAdmin

Thank you very much, but I have read these articles many times, but there is no solution for Joomla. WordPress only. Joomla theme is not popular in your forum. 0 requests per year.
.........

Offline warren

  • *
  • 293
  • +0/-0
Re: How to upgrade MySQL.
« Reply #10 on: October 31, 2023, 05:26:21 PM »
Thank you very much, but I have read these articles many times, but there is no solution for Joomla. WordPress only. Joomla theme is not popular in your forum. 0 requests per year.

I just tested this and can install joomla 4.40 on sme in ibay , follow the instructions  to configure / setup mariadb105 :

Code: [Select]
mysqladmin105 create yourdbname
Code: [Select]
mysql105
GRANT ALL PRIVILEGES ON yourdbname.* TO whoever@localhost IDENTIFIED BY 'YourPassword'


[quote
Quote from: Skalviai
Like wordpress for example:

    For Wordpress adjust the DB_HOST value in the wp-config.php file accordingly.
     define( 'DB_HOST', 'localhost:/var/lib/mysql/mariadb105.sock' );

Did you try putting the above in the config file; From the installer if i put 'localhost:/var/lib/mysql/mariadb105.sock' for the database setup it installs :


Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: How to upgrade MySQL.
« Reply #11 on: October 31, 2023, 06:53:25 PM »
I just tested this and can install joomla 4.40 on sme in ibay , follow the instructions  to configure / setup mariadb105 :

Thanks Warren. I was pretty sure it was fairly simple but I am busy fixing some contribs right now.

As I pointed out to them, but they didn't read:

Quote
After running the mysql command, we get MariaDB version 5.5.68.

https://wiki.koozali.org/Mariadb105#Usage

<sigh>

The issue is the information is there but the OP can't be bothered to read it and try to understand. They skim it, not really wanting to learn or understand. They just want it popped on a sugar coated spoon to save them their time, but happy to consume ours. it is hugely frustrating.

If they had asked "I read the wiki page and found the command mysqladmin105 and tried to create a DB and it failed" I'd have more sympathy.

As the OP pointed out, not many people use Joomla here (they do but like you, don't necessarily post), but between the documentation here, at Joomla, and a bit of trial and error and learning they would have got it fixed. Wordpress and Joomla are very similar as far as configuration goes so not difficult. I'd have probably leaped in if they had actually done something themselves. As it is they have done, and learned, nothing.

And then you ask for people help us build SME - they'll all want a new version shortly - and then they say they know nothing or are too busy, but expect 'someone else' to do it.

I think I need get out of here and retire. Too old and crochety.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Skalviai

  • *
  • 35
  • +0/-0
Re: How to upgrade MySQL.
« Reply #12 on: October 31, 2023, 08:33:00 PM »
f they had asked "I read the wiki page and found the command mysqladmin105 and tried to create a DB and it failed" I'd have more sympathy.

The situation is different. There is no problem to create or transfer a database to mariadb 10.5. This was immediately done. The problem is different. SmeServer works with Joomla 3 with mysql (mariadb 5.5.6). And it works very well. However, migrating (without installation) to Joomla4 requires a newer version of mariadb.
If you had to install Joomla4, there probably wouldn't be any questions.
Thanks to everyone who wastes precious time and helps even a little.
.........

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: How to upgrade MySQL.
« Reply #13 on: October 31, 2023, 10:17:40 PM »
your issue is not related to SME, but to migration process of joomla.

you have established  that you need to use a different version of mariadb and for that pointing the the right socket, and this is done by using localhost:/var/lib/mysql/mariadb105.sock on joomla 4


now indeed joomla 4 requires a higher mysql/mariadb, but does joomla3 supports mariadb 10.5? Does joomla 3 support same socket path than joomla does?
Here is not the right forum to ask, you would have more chance asking at the right placeā€¦ Joomla wiki and forum!

also migrating need planification.  So you might understand that before pointing your joomla3 to mariadb 10.5 you need to dump your db and restore it to the new mariadb 10.5. Phpmyadmin might help you in the process or using the mysqldump and mysql105 commands to dump and then restore to the right service. This is not either specific to SME.


then once it is done, it is also on the side of joomla forum or documentation you will find the info of what file and what variable to edit to put the string to point to mariadb 10.5
« Last Edit: October 31, 2023, 10:23:52 PM by Jean-Philippe Pialasse »

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: How to upgrade MySQL.
« Reply #14 on: October 31, 2023, 11:03:26 PM »
Classic XY problem.

Should have expained the issue properly at the start.

https://xyproblem.info/

It wasn't "how to ugrade a db" but "how to upgrade Joomla".

If the OP had really read they'd have seen these here - but I knew they hadn't.

https://forums.koozali.org/index.php/topic,54724.0.html

Quote
Tell us about your problem, not your attempts at a solution:
https://xyproblem.info/

How to report bugs effective:
https://www.chiark.greenend.org.uk/~sgtatham/bugs.html

How to ask a smart question that will attract attention:
http://www.catb.org/esr/faqs/smart-questions.html

Hey ho.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation