I want to install mariadb for erpNext on wsl. After installation of mariadb server maria db is starting but mysql not starting.
the error occurs mysql:unrecognized service
the commands for installation of maria db server on ubuntu are followings:
sudo apt-get install software-properties-common
sudo apt install mariadb-server
sudo mysql_secure_installation
and edit the configuration file:
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
add this to 50-server.cnf
[server]
user = mysql
pid-file = /run/mysqld/mysqld.pid
socket = /run/mysqld/mysqld.sock
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
bind-address = 127.0.0.1
query_cache_size = 16M
log_error = /var/log/mysql/error.log
[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
After all above steps when i run this command
sudo service mysql restart
the error mysql:unrecognized service comes.
Please anyone can help why this error comes?
Thanks in Advance,
1