Advertisement
gsavix

gammu-smsd-1-38-4-mysql-create

Aug 19th, 2017
663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 6.67 KB | None | 0 0
  1. by gsavix@gmail for gammu 1.38.4 test for smsd-gammu connection
  2.  
  3. a) please read this page for understand mysql smsd
  4.  
  5. "mysql backend" [1] https://wammu.eu/docs/manual/smsd/mysql.html
  6.  
  7. b) after pass c) please run this step for you get these minimum privileges
  8.  
  9. "privileges" [2] https://wammu.eu/docs/manual/smsd/mysql.html#privileges
  10.  
  11. c) use this last stable (at 08-2017) version 16 for create sql tables and trigger of gammu;
  12.  
  13. "source for mysql.sql" download [3] https://pt-br.wammu.eu/download/gammu/
  14. look at folder your-download-folder\gammu1384\gammu-1.38.4\docs\sql  (\ windows or / linux - mac)
  15.  
  16. d) connect your host, database, user, password for display database components;
  17.  
  18. at terminal linux - mac or cmd window for windows  (now look at lines mysql> prompt for mysql)
  19. to leave mysql use command quit
  20. -p prompt for password at connection time
  21.  
  22.  
  23. your-prompt-$ mysql -D your_database-name -h your_host -u your_mysql_user -p
  24. Enter password:
  25.  
  26. Welcome to the MySQL monitor.  Commands end with ; or \g.
  27. Your MySQL connection id is 12345678981
  28. Server version: 5.5.51-38.2 Percona Server (GPL), Release 38.2, Revision 727
  29.  
  30. Copyright (c) 2009-2016 Percona LLC and/or its affiliates
  31. Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
  32.  
  33. Oracle is a registered trademark of Oracle Corporation and/or its
  34. affiliates. Other names may be trademarks of their respective
  35. owners.
  36.  
  37. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  38.  
  39. mysql> show tables;
  40. Connection id:    12397462
  41. Current database: dg1384
  42.  
  43. +---------------------------+
  44. | Tables_in_dg1384 |
  45. +---------------------------+
  46. | gammu                     |
  47. | inbox                     |
  48. | outbox                    |
  49. | outbox_multipart          |
  50. | phones                    |
  51. | sentitems                 |
  52. +---------------------------+
  53. 6 rows in set (0.00 sec)
  54.  
  55. mysql> describe outbox;
  56. Current database: dg1384
  57.  
  58. +-------------------+------------------------------------------------------------------------------------------------------------+------+-----+------------------------+-----------------------------+
  59. | Field             | Type                                                                                                       | Null | Key | Default                | Extra                       |
  60. +-------------------+------------------------------------------------------------------------------------------------------------+------+-----+------------------------+-----------------------------+
  61. | UpdatedInDB       | timestamp                                                                                                  | NO   |     | CURRENT_TIMESTAMP      | on update CURRENT_TIMESTAMP |
  62. | InsertIntoDB      | timestamp                                                                                                  | NO   |     | 0000-00-00 00:00:00    |                             |
  63. | SendingDateTime   | timestamp                                                                                                  | NO   | MUL | 0000-00-00 00:00:00    |                             |
  64. | SendBefore        | time                                                                                                       | NO   |     | 23:59:59               |                             |
  65. | SendAfter         | time                                                                                                       | NO   |     | 00:00:00               |                             |
  66. | Text              | text                                                                                                       | YES  |     | NULL                   |                             |
  67. | DestinationNumber | varchar(20)                                                                                                | NO   |     |                        |                             |
  68. | Coding            | enum('Default_No_Compression','Unicode_No_Compression','8bit','Default_Compression','Unicode_Compression') | NO   |     | Default_No_Compression |                             |
  69. | UDH               | text                                                                                                       | YES  |     | NULL                   |                             |
  70. | Class             | int(11)                                                                                                    | YES  |     | -1                     |                             |
  71. | TextDecoded       | text                                                                                                       | NO   |     | NULL                   |                             |
  72. | ID                | int(10) unsigned                                                                                           | NO   | PRI | NULL                   | auto_increment              |
  73. | MultiPart         | enum('false','true')                                                                                       | YES  |     | false                  |                             |
  74. | RelativeValidity  | int(11)                                                                                                    | YES  |     | -1                     |                             |
  75. | SenderID          | varchar(255)                                                                                               | YES  | MUL | NULL                   |                             |
  76. | SendingTimeOut    | timestamp                                                                                                  | YES  |     | 0000-00-00 00:00:00    |                             |
  77. | DeliveryReport    | enum('default','yes','no')                                                                                 | YES  |     | default                |                             |
  78. | CreatorID         | text                                                                                                       | NO   |     | NULL                   |                             |
  79. | Retries           | int(3)                                                                                                     | YES  |     | 0                      |                             |
  80. | Priority          | int(11)                                                                                                    | YES  |     | 0                      |                             |
  81. +-------------------+------------------------------------------------------------------------------------------------------------+------+-----+------------------------+-----------------------------+
  82. 20 rows in set (0.00 sec)
  83.  
  84. mysql> quit
  85. Bye
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement