2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

create new file to deal with mariadbwq

This commit is contained in:
Ameya Shenoy 2018-01-19 04:14:15 +05:30
parent 73f89683ef
commit 8e1a73ffb2
No known key found for this signature in database
GPG Key ID: 735490161CD5C91E
2 changed files with 19 additions and 0 deletions

View File

@ -14,6 +14,22 @@
stat: path="{{ bench_path }}/sites/site1.local"
register: site_folder
- name: Add additional conf for MariaDB 10.2 in mariadb.conf.d
blockinfile:
path: /etc/mysql/mariadb.conf.d/erpnext.cnf
block: |
[mysqld]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
create: yes
become: yes
become_user: root
- name: restart mysql
service: name=mysql state=restarted
become: yes
become_user: root
- name: create a new default site
command: bench new-site site1.local --admin-password {{ admin_password }} --mariadb-root-password {{ mysql_root_password }}
args:

View File

@ -59,3 +59,6 @@ slow-query-log-file = /var/lib/mysql/mysql-slow.log
[mysql]
default-character-set = utf8mb4
# Import all .cnf files from configuration directory
!includedir /etc/mysql/mariadb.conf.d/