mgsmus
Bu JSON seçeneği sunucu veritabanında yapıda çıkmıyor.
Localde migrate edebiliyorum ama sunucuda aynı migration syntax veriyor.
Sunucu sürümü: 10.1.44-MariaDB-0ubuntu0.18.04.1 - Ubuntu 18.04
PHP sürümü: 7.3.17
Sanırım bu sürümü desteklemiyor.
Bu şekilde işlem yapabilirsiniz diye bir yazı buldum pleskte.
Ubuntu 18.04 is shipped with MariaDB 10.1. MariaDB 10.x version is a drop-in replacement for MySQL 5.5-5.7. In order to upgrade MariaDB 10.1 to MariaDB 10.2, follow this steps:
Create a backup of all databases with the following command:
#- MYSQL_PWD=cat /etc/psa/.psa.shadow
mysqldump -u admin --all-databases --routines --triggers > /tmp/all-databases.sql
Stop the MariaDB service:
#- service mariadb stop
Install repositories from downloads.mariadb.org, for example qq:
Warning: Check the file "/etc/apt/sources.list" and the files inside directory "/etc/apt/sources.list.d/" and disable (comment with # at the beginning of the line) all MySQL repositories (e.g. MySQL 8 repository) to avoid installation of wrong MySQL versions by mistake.
apt-get install software-properties-common
#- apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
#- add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.truenetwork.ru/mariadb/repo/10.2/ubuntu bionic main'
Create a backup of all MySQL data:
#- cp -v -a /var/lib/mysql/ /var/lib/mysql_backup
Start an upgrade with the following command. Leave all fields empty when asked for a root user password:
#- apt-get install mariadb-server
Start the MariaDB service:
#- service mariadb start
Upgrade MySQL databases:
#- MYSQL_PWD=cat /etc/psa/.psa.shadow
mysql_upgrade -uadmin
Restart mysql service:
#- service mariadb restart
Execute the following commands to update package version inside Plesk:
#- plesk bin service_node --update local
#- plesk sbin packagemng -sdf
Databasedeki verileri kaybeder miyim ? Backup yapmış ama nerde geri yüklemeye çalışıyor anlamadım.
cp -v -a /var/lib/mysql/ /var/lib/mysql_backup sanırım bu olabilir