easyengine
easyengine copied to clipboard
How do I change mysql root password?
How to change root mysql password? Easy and clear question, right?
What I tried:
Change root pass in db using:
-
cd /opt/easyengine/services && docker-compose exec global-db bash -c 'mysql -uroot -p${MYSQL_ROOT_PASSWORD}' -
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newrootpass'); -
flush privileges; -
quit; -
nano /opt/easyengine/services/docker-compose.ymland change lineMYSQL_ROOT_PASSWORD - manual edit record
global-dbpassword in/opt/easyengine/db/ee.sqlite -
ee service restart db
SO HOW TO CHANGE ROOT MYSQL PASSWORD?
System Information
+-------------------+----------------------------------------------------------+
| OS | Linux 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:3 |
| | 7 UTC 2021 x86_64 |
| Shell | /bin/bash |
| PHP binary | /usr/bin/php8.0 |
| PHP version | 8.0.10 |
| php.ini used | /etc/php/8.0/cli/php.ini |
| EE root dir | phar://ee.phar |
| EE vendor dir | phar://ee.phar/vendor |
| EE phar path | /var/lib/docker/volumes |
| EE packages dir | |
| EE global config | /opt/easyengine/config/config.yml |
| EE project config | |
| EE version | 4.3.1 |
+-------------------+----------------------------------------------------------+
Server version: 10.5.4-MariaDB-1:10.5.4+maria~focal-log - mariadb.org binary distribution