Skip to content

Commit

Permalink
modify mysql command path
Browse files Browse the repository at this point in the history
  • Loading branch information
denglei committed Aug 27, 2014
1 parent ec04ced commit 70f0300
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Delete Mysql Tpcc Database
shell: mysql -h {{ ansible_default_ipv4.address }} -u {{ mysql_database_user }} -p{{ mysql_passwd }} -e "drop database {{ tpcc_database_name }}"
shell: {{ mysql_basedir }}/bin/mysql -h {{ ansible_default_ipv4.address }} -u {{ mysql_database_user }} -p{{ mysql_passwd }} -e "drop database {{ tpcc_database_name }}"
when: ansible_os_family == "RedHat" and ansible_distribution_version|int >=6
- name: Delete Mysql Tpcc Dir
shell: rm -rf /tmp/tpcc-mysql
Expand Down
4 changes: 2 additions & 2 deletions mysql_tpcc_install/roles/mysql_tpcc_install/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
shell: "cd /tmp/tpcc-mysql/src; make"
when: ansible_os_family == "RedHat" and ansible_distribution_version|int >=6
- name: Create Mysql Tpcc Database In Redhat Client
shell: mysql -h {{ ansible_default_ipv4.address }} -u {{ mysql_database_user }} -p{{ mysql_passwd }} -e "{{ item }}"
shell: {{ mysql_basedir }}/bin/mysql -h {{ ansible_default_ipv4.address }} -u {{ mysql_database_user }} -p{{ mysql_passwd }} -e "{{ item }}"
with_items:
- create database tpcc100;
when: ansible_os_family == "RedHat" and ansible_distribution_version|int >=6
- name: Load Mysql Tpcc Data Table In Redhat Client
shell: mysql -h {{ ansible_default_ipv4.address }} -u {{ mysql_database_user }} -p{{ mysql_passwd }} {{ tpcc_database_name }} </tmp/tpcc-mysql/{{ item }}
shell: {{ mysql_basedir }}/bin/mysql -h {{ ansible_default_ipv4.address }} -u {{ mysql_database_user }} -p{{ mysql_passwd }} {{ tpcc_database_name }} </tmp/tpcc-mysql/{{ item }}
with_items:
- create_table.sql
- add_fkey_idx.sql
Expand Down

0 comments on commit 70f0300

Please sign in to comment.