Browse code

- sql:// changed to mysql:// in all modules

Jan Janak authored on 03/11/2003 13:03:56
Showing 20 changed files
... ...
@@ -371,12 +371,12 @@ modparam("acc", "radius_missed_flag", 3)
371 371
 		SQL address -- database specific.
372 372
 	    </para>
373 373
 	    <para>
374
-		Default value is <quote>sql://ser:heslo@localhost/ser</quote>
374
+		Default value is <quote>mysql://ser:heslo@localhost/ser</quote>
375 375
 	    </para>
376 376
 	    <example>
377 377
 		<title>db_url example</title>
378 378
 		<programlisting format="linespecific">
379
-modparam("acc", "db_url", "sql://user:password@localhost/ser")
379
+modparam("acc", "db_url", "mysql://user:password@localhost/ser")
380 380
 </programlisting>
381 381
 	    </example>
382 382
 	</section>
... ...
@@ -44,16 +44,16 @@
44 44
 	    <para>
45 45
 		This is URL of the database to be used. Value of the parameter depends on the
46 46
 		database module used. For example for mysql and postgres modules this is something
47
-		like sql://username:password@host:port/database. For dbtext module (which stores
47
+		like mysql://username:password@host:port/database. For dbtext module (which stores
48 48
 		data in plaintex files) it is directory in which the database resides.
49 49
 	    </para>
50 50
 	    <para>
51
-		Default value is <quote>sql://serro:47serro11@localhost/ser</quote>.
51
+		Default value is <quote>mysql://serro:47serro11@localhost/ser</quote>.
52 52
 	    </para>
53 53
 	    <example>
54 54
 		<title><varname>db_url</varname> parameter usage</title>
55 55
 		<programlisting format="linespecific">
56
-modparam("auth_db", "db_url", "sql://foo:bar@foobar.org/ser")
56
+modparam("auth_db", "db_url", "mysql://foo:bar@foobar.org/ser")
57 57
 </programlisting>
58 58
 	    </example>
59 59
 	</section>
... ...
@@ -83,7 +83,7 @@
83 83
 				<title>Set <varname>cpl_db</varname> parameter</title>
84 84
 				<programlisting format="linespecific">
85 85
 ...
86
-modparam("cpl_c","cpl_db","sql://user:passwd@host/database")
86
+modparam("cpl_c","cpl_db","mysql://user:passwd@host/database")
87 87
 ...
88 88
 				</programlisting>
89 89
 			</example>
... ...
@@ -53,12 +53,12 @@
53 53
 		This is <acronym>URL</acronym> of the database to be used.
54 54
 	    </para>
55 55
 	    <para>
56
-		Default value is <quote>sql://serro:47serro11@localhost/ser</quote>
56
+		Default value is <quote>mysql://serro:47serro11@localhost/ser</quote>
57 57
 	    </para>
58 58
 	    <example>
59 59
 		<title>Setting db_url parameter</title>
60 60
 		<programlisting format="linespecific">
61
-modparam("domain", "db_url", "sql://ser:pass@db_host/ser")
61
+modparam("domain", "db_url", "mysql://ser:pass@db_host/ser")
62 62
 </programlisting>
63 63
 	    </example>
64 64
 	</section>
... ...
@@ -58,14 +58,14 @@
58 58
 	    </para>
59 59
 	    <para>
60 60
 		<emphasis>
61
-		    Default value is <quote>sql://serro:47serro11@localhost/ser</quote>.
61
+		    Default value is <quote>mysql://serro:47serro11@localhost/ser</quote>.
62 62
 		</emphasis>
63 63
 	    </para>
64 64
 	    <example>
65 65
 		<title>Set <varname>db_url</varname> parameter</title>
66 66
 		<programlisting format="linespecific">
67 67
 ...
68
-modparam("group", "db_url", "sql://username:password@dbhost/ser")
68
+modparam("group", "db_url", "mysql://username:password@dbhost/ser")
69 69
 ...
70 70
 </programlisting>
71 71
 	    </example>
... ...
@@ -323,14 +323,14 @@
323 323
 	    </para>
324 324
 	    <para>
325 325
 		<emphasis>
326
-		    Default value is <quote>sql://root@127.0.0.1/sip_jab</quote>.
326
+		    Default value is <quote>mysql://root@127.0.0.1/sip_jab</quote>.
327 327
 		</emphasis>
328 328
 	    </para>
329 329
 	    <example>
330 330
 		<title>Set <varname>db_url</varname> parameter</title>
331 331
 		<programlisting format="linespecific">
332 332
 ...
333
-modparam("jabber", "db_url", "sql://username:password@host/sip_jab")
333
+modparam("jabber", "db_url", "mysql://username:password@host/sip_jab")
334 334
 ...
335 335
 </programlisting>
336 336
 	    </example>
... ...
@@ -34,7 +34,7 @@ loadmodule "../sip_router/modules/sl/sl.so"
34 34
 loadmodule "../sip_router/modules/mysql/mysql.so"
35 35
 loadmodule "../sip_router/modules/jabber/jabber.so"
36 36
 
37
-modparam("jabber","db_url","sql://user:***@127.0.0.1/sip_jab")
37
+modparam("jabber","db_url","mysql://user:***@127.0.0.1/sip_jab")
38 38
 modparam("jabber","jaddress","127.0.0.1")
39 39
 modparam("jabber","jport",5222)
40 40
 modparam("jabber","workers",2)
... ...
@@ -52,7 +52,7 @@ modparam("usrloc", "db_mode", 0)
52 52
 
53 53
 # -- jabber params --
54 54
 
55
-modparam("jabber","db_url","sql://user:password@127.0.0.1/sip_jab")
55
+modparam("jabber","db_url","mysql://user:password@127.0.0.1/sip_jab")
56 56
 modparam("jabber","jaddress","jabber.server.com")
57 57
 modparam("jabber","jport",5222)
58 58
 modparam("jabber","workers",2)
... ...
@@ -98,7 +98,7 @@ db_con_t** db_con;
98 98
 
99 99
 /** parameters */
100 100
 
101
-char *db_url   = "sql://root@127.0.0.1/sip_jab";
101
+char *db_url   = "mysql://root@127.0.0.1/sip_jab";
102 102
 char *db_table = "jusers";
103 103
 char *registrar=NULL; //"sip:registrar@iptel.org";
104 104
 
... ...
@@ -42,7 +42,7 @@ modparam("usrloc", "db_mode", 0)
42 42
 
43 43
 # -- msilo params --
44 44
 
45
-modparam("msilo","db_url","sql://user:xxx@127.0.0.1/msilo")
45
+modparam("msilo","db_url","mysql://user:xxx@127.0.0.1/msilo")
46 46
 modparam("msilo","registrar","sip:registrar@mydomain.com")
47 47
 
48 48
 # -- tm params --
... ...
@@ -87,14 +87,14 @@
87 87
 	    </para>
88 88
 	    <para>
89 89
 		<emphasis>
90
-		    Default value is <quote>sql://root@localhost/msilo</quote>.
90
+		    Default value is <quote>mysql://root@localhost/msilo</quote>.
91 91
 		</emphasis>
92 92
 	    </para>
93 93
 	    <example>
94 94
 		<title>Set the <quote>db_url</quote> parameter</title>
95 95
 		<programlisting format="linespecific">
96 96
 ...
97
-modparam("msilo", "db_url", "sql://user:passwd@host.com/dbname")
97
+modparam("msilo", "db_url", "mysql://user:passwd@host.com/dbname")
98 98
 ...
99 99
 </programlisting>
100 100
 	    </example>
... ...
@@ -48,7 +48,7 @@ static char sql_buf[SQL_BUF_LEN];
48 48
  * returns 1 on success, 0 otherwise
49 49
  * _h is a handle used in communication with database
50 50
  *
51
- * URL is in form sql://user:password@host:port/database
51
+ * URL is in form mysql://user:password@host:port/database
52 52
  */
53 53
 static inline int connect_db(db_con_t* _h, const char* _db_url)
54 54
 {
... ...
@@ -57,7 +57,7 @@
57 57
  #modparam("auth", "password_column", "password")
58 58
 
59 59
 
60
- modparam("pdt", "db_url", "sql://root@localhost/pdt")    
60
+ modparam("pdt", "db_url", "mysql://root@localhost/pdt")    
61 61
  modparam("pdt", "db_table", "domains")
62 62
  modparam("pdt", "prefix", "2")
63 63
  modparam("pdt", "start_range", 2000)
... ...
@@ -100,11 +100,11 @@ domain[3330]=iptel.org
100 100
 	    <title><varname>db_url</varname> (string)</title>
101 101
 	    <para>
102 102
 		<acronym>SQL</acronym> &url; of database--username, password, host, port and
103
-		database (ex: sql://username:password@hostname.com/database)
103
+		database (ex: mysql://username:password@hostname.com/database)
104 104
 	    </para>
105 105
 	    <para>
106 106
 		<emphasis>
107
-		    Default value is <quote>sql://root@127.0.0.1/pdt</quote>.
107
+		    Default value is <quote>mysql://root@127.0.0.1/pdt</quote>.
108 108
 		</emphasis>
109 109
 	    </para>
110 110
 	    <example>
... ...
@@ -72,7 +72,7 @@ db_con_t *db_con = NULL;
72 72
 
73 73
 
74 74
 /** parameters */
75
-char *db_url = "sql://root@127.0.0.1/pdt";
75
+char *db_url = "mysql://root@127.0.0.1/pdt";
76 76
 char *db_table = "domains";
77 77
 
78 78
 /** pstn prefix */
... ...
@@ -115,7 +115,7 @@ static int connect_db(db_con_t* _h, const char* _db_url)
115 115
 
116 116
 	/*
117 117
 	** get the connection parameters parsed from the db_url string
118
-	** it looks like: sql://username:userpass@dbhost:dbport/dbname
118
+	** it looks like: postgres://username:userpass@dbhost:dbport/dbname
119 119
 	** username/userpass : name and password for the database
120 120
 	** dbhost :            the host name or ip address hosting the database
121 121
 	** dbport :            the port to connect to database on
... ...
@@ -55,14 +55,14 @@
55 55
 	    </para>
56 56
 	    <para>
57 57
 		<emphasis>
58
-		    Default value is <quote>sql://serro:47serro11@localhost/ser</quote>.
58
+		    Default value is <quote>mysql://serro:47serro11@localhost/ser</quote>.
59 59
 		</emphasis>
60 60
 	    </para>
61 61
 	    <example>
62 62
 		<title>Set <varname>db_url</varname> parameter</title>
63 63
 		<programlisting format="linespecific">
64 64
 ...
65
-modparam("module", "db_url", "sql://username:password@localhost/ser")
65
+modparam("module", "db_url", "mysql://username:password@localhost/ser")
66 66
 ...
67 67
 </programlisting>
68 68
 	    </example>
... ...
@@ -198,14 +198,14 @@ modparam("usrloc", "method_column", "method")
198 198
 	    </para>
199 199
 	    <para>
200 200
 		<emphasis>
201
-		    Default value is <quote>sql://ser:heslo@localhost/ser</quote>.
201
+		    Default value is <quote>mysql://ser:heslo@localhost/ser</quote>.
202 202
 		</emphasis>
203 203
 	    </para>
204 204
 	    <example>
205 205
 		<title>Set <varname>db_url</varname> parameter</title>
206 206
 		<programlisting format="linespecific">
207 207
 ...
208
-modparam("usrloc", "db_url", "sql://username:password@localhost/ser")
208
+modparam("usrloc", "db_url", "mysql://username:password@localhost/ser")
209 209
 ...
210 210
 </programlisting>
211 211
 	    </example>
... ...
@@ -73,14 +73,14 @@
73 73
 	    </para>
74 74
 	    <para>
75 75
 		<emphasis>
76
-		    Default value is <quote>sql://ser:heslo@localhost/ser</quote>.
76
+		    Default value is <quote>mysql://ser:heslo@localhost/ser</quote>.
77 77
 		</emphasis>
78 78
 	    </para>
79 79
 	    <example>
80 80
 		<title>Set <varname>db_url</varname> parameter</title>
81 81
 		<programlisting format="linespecific">
82 82
 ...
83
-modparam("vm", "db_url", "sql://username:password@localhost/ser")
83
+modparam("vm", "db_url", "mysql://username:password@localhost/ser")
84 84
 ...
85 85
 </programlisting>
86 86
 	    </example>
... ...
@@ -87,7 +87,7 @@ static int vm_init_child(int rank);
87 87
 
88 88
 struct tm_binds _tmb;
89 89
 
90
-char* vm_db_url = "sql://ser:heslo@localhost/ser";    /* Database URL */
90
+char* vm_db_url = "mysql://ser:heslo@localhost/ser";    /* Database URL */
91 91
 char* email_column = "email_address";
92 92
 char* subscriber_table = "subscriber" ;
93 93